Add SetDefault()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
520a495c59
commit
fb113b165e
@ -202,7 +202,9 @@ class GenButton(wx.PyControl):
|
|||||||
wx.PyControl.SetForegroundColour(self, colour)
|
wx.PyControl.SetForegroundColour(self, colour)
|
||||||
self.InitColours()
|
self.InitColours()
|
||||||
|
|
||||||
|
def SetDefault(self):
|
||||||
|
self.GetParent().SetDefaultItem(self)
|
||||||
|
|
||||||
def _GetLabelSize(self):
|
def _GetLabelSize(self):
|
||||||
""" used internally """
|
""" used internally """
|
||||||
w, h = self.GetTextExtent(self.GetLabel())
|
w, h = self.GetTextExtent(self.GetLabel())
|
||||||
|
Loading…
Reference in New Issue
Block a user