Changeset 3819


Ignore:
Timestamp:
Feb 12, 2019 1:03:36 PM (5 years ago)
Author:
vondreele
Message:

fix cursor for old wx versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3818 r3819  
    893893    mode = page.toolbar._active
    894894    if mode == 'PAN':
    895         page.canvas.Cursor = wx.Cursor(wx.CURSOR_SIZING)
     895        if 'phoenix' in wx.version():
     896            page.canvas.Cursor = wx.Cursor(wx.CURSOR_SIZING)
     897        else:
     898            page.canvas.SetCursor(wx.StockCursor(wx.CURSOR_SIZING))
    896899    elif mode == 'ZOOM':
    897         page.canvas.Cursor = wx.Cursor(wx.CURSOR_MAGNIFIER)
     900        if 'phoenix' in wx.version():
     901            page.canvas.Cursor = wx.Cursor(wx.CURSOR_MAGNIFIER)
     902        else:
     903            page.canvas.SetCursor(wx.StockCursor(wx.CURSOR_MAGNIFIER))
    898904    else:
    899         page.canvas.Cursor = wx.Cursor(wx.CURSOR_CROSS)
     905        if 'phoenix' in wx.version():
     906            page.canvas.Cursor = wx.Cursor(wx.CURSOR_CROSS)
     907        else:
     908            page.canvas.SetCursor(wx.StockCursor(wx.CURSOR_CROSS))
    900909           
    901910################################################################################
Note: See TracChangeset for help on using the changeset viewer.