GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.RealPoint — wxPython 4.3.2 Docs
|
Initializes to zero the x and y members. |
|
Return the point’s properties as a tuple. |
|
Returns an immutable representation of the |
|
Properties Summary¶See |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
Class API¶Possible constructors:
RealPoint() -> None RealPoint(x, y) -> None RealPoint(pt) -> None
A RealPoint is a useful data structure for graphics operations.
__init__ (self)
Initializes to zero the x and y members.
None
__init__ (self, x, y)
Initializes the point with the given coordinates.
x (float)
y (float)
None
__init__ (self, pt)
Converts the given wx.Point (with integer coordinates) to a wx.RealPoint.
pt (wx.Point)
None
Return the point’s properties as a tuple.
Any
Returns an immutable representation of the wx.RealPoint object, based on namedtuple.
This new object is hashable and can be used as a dictionary key,
be added to sets, etc. It can be converted back into a real wx.RealPoint
with a simple statement like this: obj = wx.RealPoint(imObj).
bool
bool
__iadd__ (self, sz)
sz (wx.Size)
__iadd__ (self, pt)
pt (wx.RealPoint)
__isub__ (self, sz)
sz (wx.Size)
__isub__ (self, pt)
pt (wx.RealPoint)
A public C++ attribute of type float. X coordinate of this point.
A public C++ attribute of type float. Y coordinate of this point.