Ignore:
Timestamp:
Jun 23, 2018 7:46:31 PM (5 years ago)
Author:
toby
Message:

fix seq ref constraint numbering bug; fix use if HAP vars in PSvars & equations; complete RepaintHistogramInfo? w/Py3 + misc Py3 fixes; improve initialization after project read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIddataGUI.py

    r3436 r3447  
    796796    def RepaintHistogramInfo(Scroll=0):
    797797        if 'phoenix' in wx.version():
    798 #            if DData.__class__ is  not wx._core.ScrolledWindow:
    799 #                # How to determine window is closed in Phoenix?
    800 #                return
    801798            G2frame.bottomSizer.Clear(True)
     799            # deal with case where this is called after another tree item has been selected
     800            try:
     801                DData.Shown
     802            except RuntimeError:
     803                if GSASIIpath.GetConfigValue('debug'):
     804                    print('DBG: DData window deleted. Ignoring RepaintHistogramInfo, forcing redraw')
     805                # Repaint called while DData window deleted, force redraw of entire window
     806                import GSASIIdataGUI
     807                G2frame.PickIdText = ''
     808                wx.CallLater(100,GSASIIdataGUI.SelectDataTreeItem,G2frame,G2frame.GPXtree.Selection)
     809                return
    802810        else:
     811            # deal with case where this is called after another tree item has been selected
    803812            if DData.__class__ is  not wx._windows.ScrolledWindow:
    804813                # fix bug where this is called after the Window is deleted
Note: See TracChangeset for help on using the changeset viewer.