]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes for DemoCodeEditor for when there is no STC available.
authorRobin Dunn <robin@alldunn.com>
Mon, 22 Nov 2004 22:31:04 +0000 (22:31 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 22 Nov 2004 22:31:04 +0000 (22:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/Main.py

index 458c1a713acb804719e703a2be2e3aa6989d6894..250ede5fc2312868f04a1725555cd34a4f4ce4ce 100644 (file)
@@ -514,13 +514,13 @@ except ImportError:
         def GetText(self):
             return self.GetValue()
 
-        def GetPositionFromLine(line):
+        def GetPositionFromLine(self, line):
             return self.XYToPosition(0,line)
 
         def GotoLine(self, line):
-            pos = self.editor.GetPositionFromLine(line)
-            self.editor.SetInsertionPoint(pos)
-            self.editor.ShowPosition(pos)
+            pos = self.GetPositionFromLine(line)
+            self.SetInsertionPoint(pos)
+            self.ShowPosition(pos)
 
         def SelectLine(self, line):
             start = self.GetPositionFromLine(line)