Basic Mouse mode and baseclass for other GUImode.
This one does nothing with any event
wx.lib.floatcanvas.GUIMode.GUIMouse
, wx.lib.floatcanvas.GUIMode.GUIMove
, wx.lib.floatcanvas.GUIMode.GUIZoomIn
, wx.lib.floatcanvas.GUIMode.GUIZoomOut
__init__ |
Default class constructor. |
OnKeyDown |
|
OnKeyUp |
|
OnLeftDouble |
|
OnLeftDown |
|
OnLeftUp |
|
OnMiddleDouble |
|
OnMiddleDown |
|
OnMiddleUp |
|
OnMove |
|
OnRightDouble |
|
OnRightDown |
|
OnRightUp |
|
OnWheel |
|
UnSet |
this method gets called by FloatCanvas when a new mode is being set |
UpdateScreen |
Update gets called if the screen has been repainted in the middle of a zoom in |
GUIBase
(object)¶Basic Mouse mode and baseclass for other GUImode.
This one does nothing with any event
__init__
(self, Canvas=None)¶Default class constructor.
Parameters: | Canvas – the canvas the GUI mode is attached too |
---|
OnKeyDown
(self, event)¶OnKeyUp
(self, event)¶OnLeftDouble
(self, event)¶OnLeftDown
(self, event)¶OnLeftUp
(self, event)¶OnMiddleDouble
(self, event)¶OnMiddleDown
(self, event)¶OnMiddleUp
(self, event)¶OnMove
(self, event)¶OnRightDouble
(self, event)¶OnRightDown
(self, event)¶OnRightUp
(self, event)¶OnWheel
(self, event)¶UnSet
(self)¶this method gets called by FloatCanvas when a new mode is being set on the Canvas
UpdateScreen
(self)¶Update gets called if the screen has been repainted in the middle of a zoom in so the Rubber Band Box can get updated. Other GUIModes may require something similar