X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75aa19469b8b31ae58d6e8956b0e4c7200e30578..359fb29e43d6ba4283c38de4bacf52134ab8dfa7:/wxPython/wx/tools/XRCed/tree.py diff --git a/wxPython/wx/tools/XRCed/tree.py b/wxPython/wx/tools/XRCed/tree.py index 8e515841ae..c08b451fd4 100644 --- a/wxPython/wx/tools/XRCed/tree.py +++ b/wxPython/wx/tools/XRCed/tree.py @@ -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):