Home | Trees | Index | Help |
|
---|
Package wx :: Class Size |
|
object
--+
|
Size
wx.Size is a useful data structure used to represent the size of something. It simply contains integer width and height properties. In most places in wxPython where a wx.Size is expected a (width, height) tuple can be used instead.
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 of wx.Size objects. |
__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)
| |
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 | |
x.__setattr__('name', value) <==> x.name = value |
Property Summary | |
---|---|
height | |
width | |
x | |
y |
Class Variable Summary | |
---|---|
bool |
__safe_for_unpickling__ = True
|
Method Details |
---|
__init__(self,
w=0,
h=0)
|
__add__(self,
sz)
|
__eq__(self,
other)
|
__ne__(self, other)Test for inequality of wx.Size objects.
|
__sub__(self,
sz)
|
asTuple(*args, **kwargs)asTuple is deprecated, use |
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.
|
Class Variable Details |
---|
__safe_for_unpickling__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:50:00 2007 | http://epydoc.sf.net |