X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf694132f1c28509a9f84377ce8d374bae4177ad..37f214d588b02079a3ddf64c2e46585ca1657c1b:/utils/wxPython/demo/wxLayoutConstraints.py diff --git a/utils/wxPython/demo/wxLayoutConstraints.py b/utils/wxPython/demo/wxLayoutConstraints.py index 9182115d4c..d8f9ed74e3 100644 --- a/utils/wxPython/demo/wxLayoutConstraints.py +++ b/utils/wxPython/demo/wxLayoutConstraints.py @@ -6,11 +6,11 @@ from wxPython.wx import * class TestLayoutConstraints(wxWindow): def __init__(self, parent): wxWindow.__init__(self, parent, -1) - self.SetBackgroundColour(wxNamedColour("MEDIUM ORCHID")) - 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()