GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.RealPoint
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.RealPoint — wxPython 4.3.2 Docs

phoenix_title wx.RealPoint¶

A wx.RealPoint is a useful data structure for graphics operations.

It contains floating point x and y members. See wx.Point for an integer version.

Note that the coordinates stored inside a wx.RealPoint object may be negative and that wx.RealPoint functions do not perform any check against negative values.

See also

wx.Point


class_hierarchy Class Hierarchy¶

Inheritance diagram for class RealPoint:

Inheritance diagram of RealPoint


method_summary Methods Summary¶

__init__

Initializes to zero the x and y members.

Get

Return the point’s properties as a tuple.

GetIM

Returns an immutable representation of the wx.RealPoint object, based on namedtuple.

__bool__

__eq__

__getitem__

__len__

__mul__

__ne__

__nonzero__

__reduce__

__repr__

__setitem__

__str__

__iadd__

__isub__


property_summary Properties Summary¶

IM

See GetIM

x

A public C++ attribute of type float. X coordinate of this point.

y

A public C++ attribute of type float. Y coordinate of this point.


api Class API¶

class wx.RealPoint(object)¶

Possible constructors:

RealPoint() -> None

RealPoint(x, y) -> None

RealPoint(pt) -> None

A RealPoint is a useful data structure for graphics operations.


Methods¶

__init__(self, *args, **kw)¶

overload Overloaded Implementations:



__init__ (self)

Initializes to zero the x and y members.

Return type:

None



__init__ (self, x, y)

Initializes the point with the given coordinates.

Parameters:
  • x (float)

  • y (float)

Return type:

None



__init__ (self, pt)

Converts the given wx.Point (with integer coordinates) to a wx.RealPoint.

Parameters:

pt (wx.Point)

Return type:

None





Get(self)¶

Return the point’s properties as a tuple.

Return type:

Any



GetIM(self)¶

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__(self)¶


__eq__(self, other)¶
Return type:

bool



__getitem__(self, idx)¶


__len__(self)¶


__mul__(self, d)¶
Return type:

wx.RealPoint



__ne__(self, other)¶
Return type:

bool



__nonzero__(self)¶


__reduce__(self)¶


__repr__(self)¶


__setitem__(self, idx, val)¶


__str__(self)¶


__iadd__(self, *args, **kw)¶

overload Overloaded Implementations:



__iadd__ (self, sz)

Parameters:

sz (wx.Size)

Return type:

wx.RealPoint



__iadd__ (self, pt)

Parameters:

pt (wx.RealPoint)

Return type:

wx.RealPoint





__isub__(self, *args, **kw)¶

overload Overloaded Implementations:



__isub__ (self, sz)

Parameters:

sz (wx.Size)

Return type:

wx.RealPoint



__isub__ (self, pt)

Parameters:

pt (wx.RealPoint)

Return type:

wx.RealPoint




Properties¶

IM¶

See GetIM



x¶

A public C++ attribute of type float. X coordinate of this point.



y¶

A public C++ attribute of type float. Y coordinate of this point.

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.