Floatcanvas patch from Wenrer

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-06-06 01:58:55 +00:00
parent 32c1e977c6
commit 803aace8ab
4 changed files with 353 additions and 279 deletions

View File

@@ -59,6 +59,12 @@ class GUIBase(object):
"""
def __init__(self, Canvas=None):
"""
Default class constructor.
:param `Canvas`: the canvas the GUI mode is attached too
"""
self.Canvas = Canvas # set the FloatCanvas for the mode
# it gets set when the Mode is set on the Canvas.
self.Cursors = Cursors()
@@ -286,7 +292,10 @@ class GUIMove(GUIBase):
self.Canvas.Zoom(1.1)
class GUIZoomIn(GUIBase):
"""
Mode to zoom in.
"""
def __init__(self, canvas=None):
GUIBase.__init__(self, canvas)
self.StartRBBox = None
@@ -356,6 +365,9 @@ class GUIZoomIn(GUIBase):
self.Canvas.Zoom(1.1)
class GUIZoomOut(GUIBase):
"""
Mode to zoom out.
"""
def __init__(self, Canvas=None):
GUIBase.__init__(self, Canvas)