use wx.CallAfter to set the insertion point

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-05-28 20:12:22 +00:00
parent 53187e95ad
commit a472b1f9e8

View File

@@ -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)