Changeset 481


Ignore:
Timestamp:
Feb 10, 2012 3:10:46 PM (10 years ago)
Author:
vondreele
Message:

fix the up/down arrow behavior on the tree - used to skip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r473 r481  
    518518        if key == wx.WXK_UP:
    519519            self.oldFocus = wx.Window.FindFocus()
    520             next = self.PatternTree.GetPrevSibling(item)
    521             if next.IsOk(): # test if there is a previous item
    522                 self.PatternTree.SelectItem(next)
     520            self.PatternTree.GetPrevSibling(item)
    523521        elif key == wx.WXK_DOWN:
    524522            self.oldFocus = wx.Window.FindFocus()
    525             next = self.PatternTree.GetNextSibling(item)
    526             if next.IsOk(): # test if there is a next item
    527                 self.PatternTree.SelectItem(next)
     523            self.PatternTree.GetNextSibling(item)
    528524               
    529525    def OnPwdrRead(self, event):
Note: See TracChangeset for help on using the changeset viewer.