Changeset 711


Ignore:
Timestamp:
Aug 15, 2012 11:52:30 AM (10 years ago)
Author:
vondreele
Message:

fix Mac crash on use of key press pulldown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r710 r711  
    326326            event.key = cb.GetValue()[0]
    327327            cb.SetValue(' key press')
    328             OnPlotKeyPress(event)
     328            wx.CallAfter(OnPlotKeyPress,event)
    329329                       
    330330    def OnPlotKeyPress(event):
     
    924924            event.key = cb.GetValue()[0]
    925925            cb.SetValue(' key press')
    926             OnPlotKeyPress(event)
     926            wx.CallAfter(OnPlotKeyPress,event)
    927927                       
    928928    def OnMotion(event):
     
    18141814            cb.SetValue(' key press')
    18151815            if event.key in 'l':
    1816                 OnImPlotKeyPress(event)
     1816                wx.CallAfter(OnImPlotKeyPress,event)
    18171817                       
    18181818    def OnImPick(event):
Note: See TracChangeset for help on using the changeset viewer.