X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb0054cda81e7a6a6e1f33f4b47e46f529110f14..d1bc9efeffbb308a3a7f9ede2ae80636e2745ef4:/utils/wxPython/demo/Main.py diff --git a/utils/wxPython/demo/Main.py b/utils/wxPython/demo/Main.py index a5e15feb42..69dc714e46 100644 --- a/utils/wxPython/demo/Main.py +++ b/utils/wxPython/demo/Main.py @@ -43,7 +43,7 @@ _treeList = [ ('wxPython Library', ['Sizers', 'Layoutf', 'wxScrolledMessageDialog', 'wxMultipleChoiceDialog', 'wxPlotCanvas']), - ('Cool Contribs', ['pyTree', 'hangman', 'SlashDot']), + ('Cool Contribs', ['pyTree', 'hangman', 'SlashDot', 'XMLtreeview']), ] @@ -153,7 +153,9 @@ class wxPythonDemo(wxFrame): w, h = self.log.GetClientSizeTuple() numLines = h/self.charHeight x, y = self.log.PositionToXY(self.log.GetLastPosition()) - self.log.ShowPosition(self.log.XYToPosition(x, y-numLines+1)) + self.log.ShowPosition(self.log.XYToPosition(x, y-numLines)) +## self.log.ShowPosition(self.log.GetLastPosition()) + self.log.SetInsertionPointEnd() def write(self, txt): self.WriteText(txt) @@ -217,7 +219,7 @@ class wxPythonDemo(wxFrame): # self.txt.WriteText("Cannot open %s file." % filename) try: self.txt.SetValue(open(filename).read()) - except IOException: + except IOError: self.txt.WriteText("Cannot open %s file." % filename)