]> git.saurik.com Git - wxWidgets.git/commitdiff
Add SetDefault()
authorRobin Dunn <robin@alldunn.com>
Thu, 3 Mar 2005 01:51:53 +0000 (01:51 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 3 Mar 2005 01:51:53 +0000 (01:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/buttons.py

index acc7ee46a475ea16d263a11241cbc0765f5e9fef..9d1d798148369d83e6b7b810ecf14d660a6371c6 100644 (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())