Changeset 3816


Ignore:
Timestamp:
Feb 11, 2019 4:54:44 PM (4 years ago)
Author:
vondreele
Message:

Change plot cursor if zoom or pan buttons are pressed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3804 r3816  
    19911991       
    19921992    def OnMotion(event):
     1993        mode = Page.toolbar._active
     1994        if mode == 'PAN':
     1995            Page.Cursor = wx.Cursor(wx.CURSOR_SIZING)
     1996        elif mode == 'ZOOM':
     1997            Page.Cursor = wx.Cursor(wx.CURSOR_MAGNIFIER)
     1998        else:
     1999            Page.Cursor = wx.Cursor(wx.CURSOR_CROSS)
     2000           
    19932001        if event.button and G2frame.Contour and G2frame.TforYaxis:
    19942002            ytics = imgAx.get_yticks()
Note: See TracChangeset for help on using the changeset viewer.