X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdf907adb654d842822f7e5419d8641484955069..cda6fc01ba80a7a0cd159d10ccaeaea6573bf41b:/wxPython/wx/lib/buttons.py diff --git a/wxPython/wx/lib/buttons.py b/wxPython/wx/lib/buttons.py index acc7ee46a4..9d1d798148 100644 --- a/wxPython/wx/lib/buttons.py +++ b/wxPython/wx/lib/buttons.py @@ -202,7 +202,9 @@ class GenButton(wx.PyControl): wx.PyControl.SetForegroundColour(self, colour) self.InitColours() - + def SetDefault(self): + self.GetParent().SetDefaultItem(self) + def _GetLabelSize(self): """ used internally """ w, h = self.GetTextExtent(self.GetLabel())