Backport fixes from ROL: Fixed SetItemBold and editing 'growable'

properties of wxFlexGridSizer.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-02-24 00:11:49 +00:00
parent 83d4d9efdf
commit ca7f6330aa
4 changed files with 17 additions and 23 deletions

View File

@@ -1149,10 +1149,11 @@ class XML_Tree(wx.TreeCtrl):
self.PopupMenu(menu, evt.GetPosition())
menu.Destroy()
# Redefine to force the update of font dimentions
def SetItemBold(self, item):
wx.TreeCtrl.SetItemBold(self, item)
self.SetIndent(self.GetIndent())
# 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):