#---------------------------------------------------------------------------
-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)
self.panelD.SetConstraints(lc);
+
+
def OnButton(self, event):
wxBell()