Package pycocoa :: Module windows :: Class Screen
[frames] | no frames]

Class Screen

  object --+        
           |        
bases._Type0 --+    
               |    
   geometry.Rect --+
                   |
                  Screen

Screen Python Type, wrapping ObjC NSRect_t.

Instance Methods
 
__init__(self, fraction=0.5, cascade=10)
New, partial screen Rect.

Inherited from bases._Type0: __repr__, __str__, type2strepr

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from geometry.Rect: bottom, height, left, origin, rect, right, size, top, width, x, y

Inherited from bases._Type0: NS

Inherited from object: __class__

Method Details

__init__(self, fraction=0.5, cascade=10)
(Constructor)

 

New, partial screen Rect.

Parameters:
  • fraction - Size of the screen (float).
  • cascade - Shift from lower left corner (float or int).
Raises:
  • ValueError - Invalid fraction value.
Overrides: object.__init__