Package lib :: Module geom :: Class VLayout
[hide private]
[frames] | no frames]

Class VLayout

source code

object --+
         |
        VLayout
Known Subclasses:

vertical layout manager

Instance Methods [hide private]
 
__init__(self, rect, nitems=1, pad=(0.0, 0.0, 0.0, 0.0))
x.__init__(...) initializes x; see help(type(x)) for signature
source code
int
count(self)
return maximum number of items in the layout
source code
 
resize(self, k)
set maximum number of items
source code
 
grow(self, delta=1)
increase number of items by delta
source code
(float,float,float,float)
item(self, i=0)
get rect for item i
source code
(float,float,float,float)
item_span(self, n, k=-1)
get union of k consecutive items, starting at position n
source code
(float,float,float,float),...
items(self)
returns a sequence of all items
source code

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

Instance Variables [hide private]
  nitems
maximum number of items in the layout
  pad
tuple(top,left,bottom,right) with item padding
  rect
bounding rect for layout -- this rect will be split and the slices assigned to every item
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, rect, nitems=1, pad=(0.0, 0.0, 0.0, 0.0))
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

item_span(self, n, k=-1)

source code 

get union of k consecutive items, starting at position n

Parameters:
  • n - first item
  • k - number of items, -1 for all remaining items
Returns: (float,float,float,float)