]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/wxLayoutConstraints.py
More updates to wxWindow, wxMenu, GdiImage to get minimal to work
[wxWidgets.git] / utils / wxPython / demo / wxLayoutConstraints.py
index 9182115d4ce2ef69c69a412651f59b20152ce7a2..8e63a12af2856436cdf4f6d3de51e2d485353c41 100644 (file)
@@ -3,14 +3,14 @@ from wxPython.wx import *
 
 #---------------------------------------------------------------------------
 
-class TestLayoutConstraints(wxWindow):
+class TestLayoutConstraints(wxPanel):
     def __init__(self, parent):
-        wxWindow.__init__(self, parent, -1)
-        self.SetBackgroundColour(wxNamedColour("MEDIUM ORCHID"))
-
+        wxPanel.__init__(self, parent, -1)
         self.SetAutoLayout(true)
         EVT_BUTTON(self, 100, self.OnButton)
 
+        self.SetBackgroundColour(wxNamedColour("MEDIUM ORCHID"))
+
         self.panelA = wxWindow(self, -1, wxDefaultPosition, wxDefaultSize,
                                wxSIMPLE_BORDER)
         self.panelA.SetBackgroundColour(wxBLUE)
@@ -86,6 +86,8 @@ class TestLayoutConstraints(wxWindow):
         self.panelD.SetConstraints(lc);
 
 
+
+
     def OnButton(self, event):
         wxBell()