Add SetDefault()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-03-03 01:51:53 +00:00
parent 520a495c59
commit fb113b165e

View File

@ -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())