]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/wxButton.py
Themes and threads testing code.
[wxWidgets.git] / utils / wxPython / demo / wxButton.py
index 2ec66651a661b8d050f6fd3a24db65b93ff97291..d65cafd59db9b69691bb3bbd1c0feb096f44b00d 100644 (file)
@@ -10,9 +10,9 @@ class TestPanel(wxPanel):
 
         b = wxButton(self, 10, "Hello", wxPoint(20, 20))
         EVT_BUTTON(self, 10, self.OnClick)
-        b.SetDefault()
         b.SetBackgroundColour(wxBLUE)
         b.SetForegroundColour(wxWHITE)
+        b.SetDefault()
 
         wxButton(self, 20, "HELLO AGAIN!", wxPoint(20, 60), wxSize(90, 45))
         EVT_BUTTON(self, 20, self.OnClick)