X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6bff4be599aefb32d69734849e4c8fc1529f7868..258836fa259076b4bda6088fe653218645b2e26d:/wxPython/demo/wxRightTextCtrl.py diff --git a/wxPython/demo/wxRightTextCtrl.py b/wxPython/demo/wxRightTextCtrl.py index 0322b3e875..b2fa3e970b 100644 --- a/wxPython/demo/wxRightTextCtrl.py +++ b/wxPython/demo/wxRightTextCtrl.py @@ -12,8 +12,8 @@ class TestPanel(wxPanel): fgs = wxFlexGridSizer(cols=2, vgap=5, hgap=5) txt = wxStaticText(self, -1, - "These text controls will align their contents\n" - "to the right (onwxMSW) when they don't have focus.", style=wxALIGN_RIGHT ) + "These text controls will align their contents to\n" + "the right (on wxMSW) when they don't have focus.", style=wxALIGN_RIGHT ) fgs.Add(txt) fgs.Add(wxRightTextCtrl(self, -1, "", size=(75, -1))) @@ -33,7 +33,7 @@ class TestPanel(wxPanel): sizer.Add(fgs, 0, wxALL, 25) self.SetSizer(sizer) - self.SetAutoLayout(true) + self.SetAutoLayout(True) @@ -46,3 +46,11 @@ def runTest(frame, nb, log): #---------------------------------------------------------------------- overview = wxPython.lib.rightalign.__doc__ + + + + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])])