Fixes for DemoCodeEditor for when there is no STC available.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-11-22 22:31:04 +00:00
parent f616aec7dc
commit b6176ab722

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