X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..ed8e1ecb3fdabbbe5062ebba2a50a2bc8d1e2c76:/wxPython/demo/Layoutf.py?ds=inline diff --git a/wxPython/demo/Layoutf.py b/wxPython/demo/Layoutf.py index cde4ad405f..8a80e8a34f 100644 --- a/wxPython/demo/Layoutf.py +++ b/wxPython/demo/Layoutf.py @@ -11,15 +11,15 @@ class TestLayoutf(wxPanel): self.SetAutoLayout(True) EVT_BUTTON(self, 100, self.OnButton) - self.panelA = wxWindow(self, -1, wxPyDefaultPosition, wxPyDefaultSize, wxSIMPLE_BORDER) + self.panelA = wxWindow(self, -1, style=wxSIMPLE_BORDER) self.panelA.SetBackgroundColour(wxBLUE) self.panelA.SetConstraints(Layoutf('t=t10#1;l=l10#1;b=b10#1;r%r50#1',(self,))) - self.panelB = wxWindow(self, -1, wxPyDefaultPosition, wxPyDefaultSize, wxSIMPLE_BORDER) + self.panelB = wxWindow(self, -1, style=wxSIMPLE_BORDER) self.panelB.SetBackgroundColour(wxRED) self.panelB.SetConstraints(Layoutf('t=t10#1;r=r10#1;b%b30#1;l>10#2', (self,self.panelA))) - self.panelC = wxWindow(self, -1, wxPyDefaultPosition, wxPyDefaultSize, wxSIMPLE_BORDER) + self.panelC = wxWindow(self, -1, style=wxSIMPLE_BORDER) self.panelC.SetBackgroundColour(wxWHITE) self.panelC.SetConstraints(Layoutf('t_10#3;r=r10#1;b=b10#1;l>10#2', (self,self.panelA,self.panelB))) @@ -29,7 +29,7 @@ class TestLayoutf(wxPanel): b = wxButton(self.panelB, 100, ' Panel B ') b.SetConstraints(Layoutf('t=t2#1;r=r4#1;h*;w*', (self.panelB,))) - self.panelD = wxWindow(self.panelC, -1, wxPyDefaultPosition, wxPyDefaultSize, wxSIMPLE_BORDER) + self.panelD = wxWindow(self.panelC, -1, style=wxSIMPLE_BORDER) self.panelD.SetBackgroundColour(wxGREEN) self.panelD.SetConstraints(Layoutf('b%h50#1;r%w50#1;h=h#2;w=w#2', (self.panelC, b))) @@ -60,3 +60,12 @@ def runTest(frame, nb, log): overview = Layoutf.__doc__ + + + + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +