/[ascend]/trunk/pygtk/canvas/panzoom.py
ViewVC logotype

Diff of /trunk/pygtk/canvas/panzoom.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1983 by jpye, Fri Jan 16 00:59:32 2009 UTC revision 1984 by jpye, Wed Jan 21 22:56:28 2009 UTC
# Line 27  class ZoomTool(Tool): Line 27  class ZoomTool(Tool):
27      def on_button_press(self, context, event):      def on_button_press(self, context, event):
28          if event.button == 2 \          if event.button == 2 \
29                  and event.state & ZOOM_MASK == ZOOM_VALUE:                  and event.state & ZOOM_MASK == ZOOM_VALUE:
             print "GRABBING"  
30              context.grab()              context.grab()
31              self.x0 = event.x              self.x0 = event.x
32              self.y0 = event.y              self.y0 = event.y

Legend:
Removed from v.1983  
changed lines
  Added in v.1984

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22