Minor errors in demo/Main.py

Hi all

If I run the demo on my linux box (FC3, 2.5.3.1, gtk1 or gtk2) it crashes. On investigation, it is because it does not have stc installed, and there are a couple of minor errors in the alternative DemoCodeEditor based on wx.TextCtrl that it uses instead.

The errors are in Main.py They were easy to fix. Here is the ‘diff’.

518c518
< def GetPositionFromLine(line):

···
    def GetPositionFromLine(self,line):

522,524c522,524
< pos = self.editor.GetPositionFromLine(line)
< self.editor.SetInsertionPoint(pos)
< self.editor.ShowPosition(pos)

        pos = self.GetPositionFromLine(line)
        self.SetInsertionPoint(pos)
        self.ShowPosition(pos)

Frank Millman