Home | Trees | Index | Help |
|
---|
Package wx :: Class LayoutConstraints |
|
object
--+ |Object
--+ | LayoutConstraints
LayoutAnchors
,
Layoutf
Note: constraints are now deprecated and you should use sizers instead.
Objects of this class can be associated with a window to define its layout constraints, with respect to siblings or its parent.
The class consists of the following eight constraints of class wx.IndividualLayoutConstraint, some or all of which should be accessed directly to set the appropriate constraints.
- left: represents the left hand edge of the window
- right: represents the right hand edge of the window
- top: represents the top edge of the window
- bottom: represents the bottom edge of the window
- width: represents the width of the window
- height: represents the height of the window
- centreX: represents the horizontal centre point of the window
- centreY: represents the vertical centre point of the window
Most constraints are initially set to have the relationship wxUnconstrained, which means that their values should be calculated by looking at known constraints. The exceptions are width and height, which are set to wxAsIs to ensure that if the user does not specify a constraint, the existing width and height will be used, to be compatible with panel items which often have take a default size. If the constraint is wx.AsIs, the dimension will not be changed.
See Also:
wx.IndividualLayoutConstraint
, wx.Window.SetConstraints
Method Summary | |
---|---|
LayoutConstraints | __init__(self)
|
__repr__(self)
| |
bool | AreSatisfied(self)
|
(areSatisfied, noChanges) | SatisfyConstraints(win)
|
Inherited from Object | |
Deletes the C++ object this Python object is a proxy for. | |
String |
Returns the class name of the C++ class using wxRTTI. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Property Summary | |
---|---|
bottom | |
centreX | |
centreY | |
height | |
left | |
right | |
top | |
width |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:48:31 2007 | http://epydoc.sf.net |