X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8eca4fef106b8327e2e55636de3f68a511a4c392..f2bbd25d26beb146eb10415511aafe9fe89b1f97:/wxPython/demo/TextCtrl.py

diff --git a/wxPython/demo/TextCtrl.py b/wxPython/demo/TextCtrl.py
index 77fc77b9e5..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)