Home | Trees | Index | Help |
|
---|
Package wx :: Class Size |
|
object
--+
|
Size
Method Summary | |
---|---|
Size |
Creates a size object. |
Size |
Add sz's proprties to this and return the result. |
__del__(self)
| |
bool |
Test for equality of wx.Size objects. |
__getitem__(self,
index)
| |
__len__(self)
| |
bool |
Test for inequality. |
__nonzero__(self)
| |
__reduce__(self)
| |
__repr__(self)
| |
__setitem__(self,
index,
val)
| |
__str__(self)
| |
Size |
Subtract sz's properties from this and return the result. |
asTuple is deprecated, use Get instead | |
Decrements this object so that both of its dimensions are not greater than the corresponding dimensions of the size. | |
(width,height) |
Returns the width and height properties as a tuple. |
int | GetHeight(self)
|
int | GetWidth(self)
|
Increments this object so that both of its dimensions are not less than the corresponding dimensions of the size. | |
bool |
Returns True if both components of the size are non-default values. |
Set both width and height. | |
Combine this size with the other one replacing the default components of this object (i.e. | |
SetHeight(self,
h)
| |
SetWidth(self,
w)
|
Property Summary | |
---|---|
height | |
width | |
x | |
y |
Class Variable Summary | |
---|---|
bool |
__safe_for_unpickling__ = True
|
Method Details |
---|
__init__(self,
w=0,
h=0)
Creates a size object. |
__add__(self,
sz)
Add sz's proprties to this and return the result. |
__eq__(self,
sz)
Test for equality of wx.Size objects. |
__ne__(self, sz)Test for inequality.
|
__sub__(self,
sz)
Subtract sz's properties from this and return the result. |
asTuple(*args, **kwargs)asTuple is deprecated, useGet instead |
DecTo(self, sz)Decrements this object so that both of its dimensions are not greater than the corresponding dimensions of the size.
|
Get()Returns the width and height properties as a tuple.
|
IncTo(self, sz)Increments this object so that both of its dimensions are not less than the corresponding dimensions of the size.
|
IsFullySpecified(self)Returns True if both components of the size are non-default values.
|
Set(self, w, h)Set both width and height.
|
SetDefaults(self, size)Combine this size with the other one replacing the default components of this object (i.e. equal to -1) with those of the other.
|
Property Details |
---|
height
|
width
|
x
|
y
|
Class Variable Details |
---|
__safe_for_unpickling__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:24:58 2005 | http://epydoc.sf.net |