X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/62038e5976965767ea0ec64c6992878457ddd59a..f4bb632cde9cc60fa89f173f0d33c5881794cc68:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 458c1a713a..61bb75c685 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -48,6 +48,7 @@ _treeList = [ # new stuff ('Recent Additions/Updates', [ 'StandardPaths', + 'MediaCtrl', ]), # managed windows == things with a (optional) caption you can close @@ -111,6 +112,7 @@ _treeList = [ 'SpinCtrl', 'SplitterWindow', 'StaticBitmap', + 'StaticBox', 'StaticText', 'StatusBar', 'StockButtons', @@ -151,6 +153,7 @@ _treeList = [ 'FloatCanvas', 'HtmlWindow', 'IntCtrl', + 'MediaCtrl', 'MVCTree', 'MaskedEditControls', 'MaskedNumCtrl', @@ -316,7 +319,7 @@ class MessagePanel(wx.Panel): box.Add((10,10), 2) self.SetSizer(box) - + self.Fit() #--------------------------------------------------------------------------- @@ -514,13 +517,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)