]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxRightTextCtrl.py
Updated to current API.
[wxWidgets.git] / wxPython / demo / wxRightTextCtrl.py
index 0322b3e8753ae12e1aece2418877f5bb92faff56..b2fa3e970b1f17c940098ae65e22fb2a29f98046 100644 (file)
@@ -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])])