Package moul :: Package file :: Module wdysini :: Class VideoConstrain
[hide private]
[frames] | no frames]

Class VideoConstrain



object --+        
         |        
 Constrain --+    
             |    
        MinMax --+
                 |
                VideoConstrain

Constrain for video mode indexes
>>> v = VideoConstrain()
>>> v(0, debug="name")
0
>>> v(-1, debug="name")
Traceback (most recent call last):
...
ConstrainError: name: -1 < min 0
>>> v(11, debug="name")
Traceback (most recent call last):
...
ConstrainError: name: 11 > max 10


Instance Methods [hide private]
  __init__(self)

Inherited from MinMax: __call__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]

Inherited from MinMax: __slots__

Inherited from MinMax (private): _max, _min


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self)
(Constructor)

 
None
Overrides: MinMax.__init__