self.selection = None
g.tools.UpdateUI()
wx.TreeCtrl.UnselectAll(self)
- wx.Yield()
+ #wx.Yield()
def ChangeSelection(self, item):
# Apply changes
n = 0 # index of sibling
prev = self.GetPrevSibling(item)
while prev.IsOk():
- # MenuBar is not a child
- if not isinstance(self.GetPyData(prev), xxxMenuBar):
+ # MenuBar and sizers are not real children (who else?)
+ if not isinstance(self.GetPyData(prev), xxxMenuBar) and not \
+ isinstance(self.GetPyData(prev), xxxSizer):
n += 1
prev = self.GetPrevSibling(prev)
return n
self.PopupMenu(menu, evt.GetPosition())
menu.Destroy()
- # Redefine to force the update of font dimentions on wxGTK
- if wx.Platform == '__WXGTK__':
- def SetItemBold(self, item, state=True):
- wx.TreeCtrl.SetItemBold(self, item, state)
- self.SetIndent(self.GetIndent())
-
# Apply changes
def Apply(self, xxx, item):
g.panel.Apply()