]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/buttons.py
A little cleanup
[wxWidgets.git] / 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())