mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Merge of PR 11 with the whitespace-only changes omitted.
See https://github.com/RobinD42/Phoenix/pull/11 Mostly phoenix-port changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,4 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
#----------------------------------------------------------------------------
|
||||
# Name: GUIMode.py
|
||||
# Purpose:
|
||||
#
|
||||
# Author:
|
||||
#
|
||||
# Created:
|
||||
# Version:
|
||||
# Date:
|
||||
# Licence:
|
||||
# Tags: phoenix-port
|
||||
#----------------------------------------------------------------------------
|
||||
"""
|
||||
|
||||
Module that holds the GUI modes used by FloatCanvas
|
||||
@@ -353,7 +365,7 @@ class GUIZoomIn(GUIBase):
|
||||
dc.SetPen(wx.Pen('WHITE', 2, wx.SHORT_DASH))
|
||||
dc.SetBrush(wx.TRANSPARENT_BRUSH)
|
||||
dc.SetLogicalFunction(wx.XOR)
|
||||
dc.DrawRectanglePointSize(*self.PrevRBBox)
|
||||
dc.DrawRectangle(*self.PrevRBBox)
|
||||
|
||||
def OnRightDown(self, event):
|
||||
self.Canvas.Zoom(1/1.5, event.GetPosition(), centerCoords="pixel")
|
||||
|
||||
Reference in New Issue
Block a user