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

Class _VideoModes



object --+
         |
        _VideoModes

Video mode informations

Instance Methods [hide private]
  __len__(self)
  getVidModeByIdx(self, idx)
Get video mode by index
  getVidModeHuman(self, idx)
Human readable vidoe mode by index
  getVidIdxByMode(self, w, h)
Reverse lookup
  widths(self)
List of available widths
  heights(self)
List of available heights

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


Class Variables [hide private]
  _videomodes = ((800, 600, 4, 3), (1024, 768, 4, 3), (1152, 864, 4,...
  _reverse_vm = {(1152, 864): 2, (1280, 1024): 7, (800, 600): 0, (12...
  d = (1920, 1200, 16, 10)
  i = 10

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__len__(self)
(Length operator)

 
None

getVidModeByIdx(self, idx)

 
Get video mode by index
>>> videoModes.getVidModeByIdx(0)
(800, 600, 4, 3)

getVidModeHuman(self, idx)

 
Human readable vidoe mode by index
>>> videoModes.getVidModeHuman(0)
'800x600 (4:3)'

getVidIdxByMode(self, w, h)

 
Reverse lookup
>>> videoModes.getVidIdxByMode(800, 600)
0

widths(self)

 
List of available widths

heights(self)

 
List of available heights

Class Variable Details [hide private]

_videomodes

None
Value:
((800, 600, 4, 3),
 (1024, 768, 4, 3),
 (1152, 864, 4, 3),
 (1280, 720, 16, 9),
 (1280, 768, 5, 3),
 (1280, 800, 16, 10),
 (1280, 960, 4, 3),
 (1280, 1024, 5, 4),
...                                                                    
      

_reverse_vm

None
Value:
{(800, 600): 0,
 (1024, 768): 1,
 (1152, 864): 2,
 (1280, 720): 3,
 (1280, 768): 4,
 (1280, 800): 5,
 (1280, 960): 6,
 (1280, 1024): 7,
...                                                                    
      

d

None
Value:
(1920, 1200, 16, 10)                                                   
      

i

None
Value:
10