X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90f7e9c7f7b17e5b7eac80f8625b3fbfc789e772..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/demo/TextCtrl.py diff --git a/wxPython/demo/TextCtrl.py b/wxPython/demo/TextCtrl.py index c9798237fb..1717e52a02 100644 --- a/wxPython/demo/TextCtrl.py +++ b/wxPython/demo/TextCtrl.py @@ -22,7 +22,7 @@ class TestPanel(wx.Panel): l1 = wx.StaticText(self, -1, "wx.TextCtrl") t1 = wx.TextCtrl(self, -1, "Test it out and see", size=(125, -1)) - t1.SetInsertionPoint(0) + wx.CallAfter(t1.SetInsertionPoint, 0) self.tc1 = t1 self.Bind(wx.EVT_TEXT, self.EvtText, t1) @@ -169,5 +169,5 @@ text masking for such things as passwords. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])