X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..7f997e3f0e332be7fea1f22d9ba4f6dc5a6c2b5a:/wxPython/demo/Listbook.py diff --git a/wxPython/demo/Listbook.py b/wxPython/demo/Listbook.py index 2186205cb3..cc3f2f77d9 100644 --- a/wxPython/demo/Listbook.py +++ b/wxPython/demo/Listbook.py @@ -1,19 +1,10 @@ -# 11/22/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# -# 11/29/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Bunches of imports that might need to go away for the final roll-out. -# import sys import wx -import images - import ColorPanel +import images colourList = [ "Aquamarine", "Black", "Blue", "Blue Violet", "Brown", "Cadet Blue", "Coral", "Cornflower Blue", "Cyan", "Dark Grey", "Dark Green", @@ -45,7 +36,6 @@ class TestLB(wx.Listbook): ) self.log = log - # make an image list using the BlomXX images il = wx.ImageList(32, 32) for x in range(1, 15): @@ -70,11 +60,9 @@ class TestLB(wx.Listbook): #st.SetForegroundColour(wxWHITE) #st.SetBackgroundColour(wxBLUE) first = False - - - wx.EVT_LISTBOOK_PAGE_CHANGED(self, self.GetId(), self.OnPageChanged) - wx.EVT_LISTBOOK_PAGE_CHANGING(self, self.GetId(), self.OnPageChanging) + self.Bind(wx.EVT_LISTBOOK_PAGE_CHANGED, self.OnPageChanged) + self.Bind(wx.EVT_LISTBOOK_PAGE_CHANGING, self.OnPageChanging) def makeColorPanel(self, color): @@ -112,10 +100,10 @@ def runTest(frame, nb, log): overview = """\
-This class is a control similar to a notebook control, but with a -wxListCtrl instead of a set of tabs. +wx.ListCtrl instead of a set of tabs. """ @@ -124,6 +112,7 @@ wxListCtrl instead of a set of tabs. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:]) +