Package fife :: Package extensions :: Package pychan :: Package widgets' :: Module layout :: Class Spacer
[hide private]
[frames] | no frames]

Class Spacer

source code

object --+
         |
        Spacer

A spacer represents expandable or fixed 'whitespace' in the GUI.

In a XML file you can get this by adding a <Spacer /> inside a VBox or
HBox element (Windows implicitly are VBox elements).

Attributes
----------

As with widgets a number of attributes can be set on a spacer (inside the XML definition).

  - min_size: Int: The minimal size this Spacer is allowed to have.
  - max_size: Int: The maximal size this Spacer is allowed to have.
  - fixed_size: Int: Set min_size and max_size to the same vale - effectively a Fixed size spacer. 

Instance Methods [hide private]
 
__init__(self, parent=None, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
_getSize(self) source code
 
_setSize(self, size) source code
 
_setFixedSize(self, size) source code
 
_isExpanding(self) source code
 
vexpand(self) source code
 
hexpand(self) source code

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

Class Variables [hide private]
  ATTRIBUTES = [IntAttr('min_size'), IntAttr('size'), IntAttr('m...
  size = property(_getSize, _setSize)
  width = property(_getSize, _setSize)
  height = property(_getSize, _setSize)
  fixed_size = property(fset= _setFixedSize)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent=None, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Class Variable Details [hide private]

ATTRIBUTES

Value:
[IntAttr('min_size'), IntAttr('size'), IntAttr('max_size'), IntAttr('f\
ixed_size'),]