Ignore:
Timestamp:
Jun 26, 2021 1:05:17 PM (5 months ago)
Author:
vondreele
Message:

add new function UpdateSelection?() to G2TreeCtrl, used it in a few places for test: OnDataDelete? (both versions), UpdateDrawOptions?, & UpdateTexture?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r4973 r4979  
    248248        else:
    249249            return wx.TreeCtrl.SetItemPyData(self,treeId,data)
     250
     251    def UpdateSelection(self):
     252        TId = self.GetFocusedItem()
     253        self.SelectItem(self.root)
     254        self.SelectItem(TId)
    250255
    251256    # def onSelectionChanged(self,event):
Note: See TracChangeset for help on using the changeset viewer.