GeezerVison is showing docs.wxpython.org — wx.MoveEvent — wxPython 4.3.2 Docs
wx.MoveEvent¶
A move event holds information about window position change.
These events are currently generated for top level (see wx.TopLevelWindow) windows in all ports, but are not generated for the child windows in wxGTK.
Events Emitted by this Class¶
Handlers bound for the following event types will receive a wx.MoveEvent parameter.
EVT_MOVE: Process a wxEVT_MOVE event, which is generated when a window is moved.
EVT_MOVE_START: Process a wxEVT_MOVE_START event, which is generated when the user starts to move or size a window. wxMSW only.
EVT_MOVING: Process a wxEVT_MOVING event, which is generated while the user is moving the window. wxMSW only.
EVT_MOVE_END: Process a wxEVT_MOVE_END event, which is generated when the user stops moving or sizing a window. wxMSW only.
Class Hierarchy¶
Inheritance diagram for class
MoveEvent:
Methods Summary¶
Properties Summary¶
Class API¶
-
class wx.MoveEvent(Event)¶
Possible constructors:
MoveEvent(pt, id=0) -> None
A move event holds information about window position change.
Methods¶
-
__init__(self, pt, id=0)¶
Constructor.
- Parameters:
-
- Return type:
None
-
GetPosition(self)¶
Returns the position of the window generating the move change event.
- Return type:
wx.Point
-
GetRect(self)¶
- Return type:
wx.Rect
-
SetPosition(self, pos)¶
- Parameters:
pos (wx.Point)
- Return type:
None
-
SetRect(self, rect)¶
- Parameters:
rect (wx.Rect)
- Return type:
None
Properties¶
-
Position¶
See GetPosition and SetPosition
-
Rect¶
See GetRect and SetRect