Changeset 1807 for trunk/GSASII.py


Ignore:
Timestamp:
Apr 24, 2015 2:10:50 PM (7 years ago)
Author:
vondreele
Message:

remove some (now) dead code
fix shift-arrow for stepping thru tree
remove extra selections in tree processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1806 r1807  
    22092209        'Called when a tree item is expanded'
    22102210        self.OnPatternTreeSelChanged(event)
     2211        event.Skip()
    22112212       
    22122213    def OnPatternTreeItemDelete(self, event):
     
    22652266                self.PatternTree.Collapse(parent)
    22662267                self.PatternTree.Expand(prev)
    2267                 id = G2gd.GetPatternTreeItemId(self,prev,name)
    2268                 self.PatternTree.SelectItem(id)
     2268                NewId = G2gd.GetPatternTreeItemId(self,prev,name)
    22692269                self.oldFocus = wx.Window.FindFocus()
     2270                wx.CallAfter(self.PatternTree.SelectItem,NewId)
    22702271            else:   
    22712272                self.PatternTree.GetPrevSibling(item)
     
    22772278                self.PatternTree.Collapse(parent)
    22782279                self.PatternTree.Expand(next)
    2279                 id = G2gd.GetPatternTreeItemId(self,next,name)
    2280                 self.PatternTree.SelectItem(id)
     2280                NewId = G2gd.GetPatternTreeItemId(self,next,name)
    22812281                self.oldFocus = wx.Window.FindFocus()
     2282                wx.CallAfter(self.PatternTree.SelectItem,NewId)
    22822283            else:   
    22832284                self.PatternTree.GetNextSibling(item)
Note: See TracChangeset for help on using the changeset viewer.