A data structure for representing a point or position with integer x
and y properties. Most places in wxPython that expect a wx.Point can
also accept a (x,y) tuple.
Method Summary |
Point |
__init__ (self,
x,
y)
Create a wx.Point object |
Point |
__add__ (self,
pt)
Add pt's proprties to this and return the result. |
|
__del__(self)
|
bool |
__eq__ (self,
other)
Test for equality of wx.Point objects. |
|
__getitem__(self,
index)
|
Point |
__iadd__ (self,
pt)
Add pt to this object. |
Point |
__isub__ (self,
pt)
Subtract pt from this object. |
|
__len__(self)
|
bool |
__ne__ (self,
other)
Test for inequality of wx.Point objects. |
|
__nonzero__(self)
|
|
__reduce__(self)
|
|
__repr__(self)
|
|
__setitem__(self,
index,
val)
|
|
__str__(self)
|
Point |
__sub__ (self,
pt)
Subtract pt's proprties from this and return the result |
|
asTuple (*args,
**kwargs)
asTuple is deprecated, use Get instead |
(x,y) |
Get ()
Return the x and y properties as a tuple. |
|
Set (self,
x,
y)
Set both the x and y properties |