Changeset 2635


Ignore:
Timestamp:
Jan 16, 2017 5:03:18 PM (5 years ago)
Author:
toby
Message:

add Yield to allow grid update completion

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2634 r2635  
    24722472                self.G2plotNB.nb.GetPage(pltNum)
    24732473            item = event.GetItem()
     2474            wx.Yield()
    24742475            G2gd.SelectDataTreeItem(self,item)
    2475             if self.oldFocus:
     2476            if self.oldFocus: # Why do this?
    24762477                self.oldFocus.SetFocus()
    24772478       
  • trunk/GSASIIgrid.py

    r2624 r2635  
    44204420    Also Called in GSASIIphsGUI.UpdatePhaseData by OnTransform callback.
    44214421    '''
    4422     pickName = G2frame.PatternTree.GetItemText(item)
    4423     if G2frame.PickIdText == pickName:
     4422    if G2frame.PickIdText == G2frame.GetTreeItemsList(item):
    44244423        return
    4425    
     4424    wx.Yield()
    44264425    oldPage = None # will be set later if already on a Phase item
    44274426    if G2frame.dataFrame:
    44284427        SetDataMenuBar(G2frame)
     4428        # save comments or notebook contents before clearing the window contents
    44294429        if G2frame.dataFrame.GetLabel() == 'Comments':
    44304430            try:
Note: See TracChangeset for help on using the changeset viewer.