X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8eca4fef106b8327e2e55636de3f68a511a4c392..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/demo/Listbook.py diff --git a/wxPython/demo/Listbook.py b/wxPython/demo/Listbook.py index cc3f2f77d9..20115cbf60 100644 --- a/wxPython/demo/Listbook.py +++ b/wxPython/demo/Listbook.py @@ -1,6 +1,4 @@ -import sys - import wx import ColorPanel @@ -8,19 +6,7 @@ import images colourList = [ "Aquamarine", "Black", "Blue", "Blue Violet", "Brown", "Cadet Blue", "Coral", "Cornflower Blue", "Cyan", "Dark Grey", "Dark Green", - "Dark Olive Green", "Dark Orchid", "Dark Slate Blue", - "Dark Slate Grey", "Dark Turquoise", "Dim Grey", "Firebrick", - "Forest Green", "Gold", "Goldenrod", "Grey", "Green", "Green Yellow", - "Indian Red", "Khaki", "Light Blue", "Light Grey", "Light Steel Blue", - "Lime Green", "Magenta", "Maroon", "Medium Aquamarine", "Medium Blue", - "Medium Forest Green", "Medium Goldenrod", "Medium Orchid", - "Medium Sea Green", "Medium Slate Blue", "Medium Spring Green", - "Medium Turquoise", "Medium Violet Red", "Midnight Blue", "Navy", - "Orange", "Orange Red", "Orchid", "Pale Green", "Pink", "Plum", - "Purple", "Red", "Salmon", "Sea Green", "Sienna", "Sky Blue", - "Slate Blue", "Spring Green", "Steel Blue", "Tan", "Thistle", - "Turquoise", "Violet", "Violet Red", "Wheat", "White", "Yellow", - "Yellow Green" + "Dark Olive Green", ] #---------------------------------------------------------------------------- @@ -36,10 +22,10 @@ class TestLB(wx.Listbook): ) self.log = log - # make an image list using the BlomXX images + # make an image list using the LBXX images il = wx.ImageList(32, 32) - for x in range(1, 15): - f = getattr(images, 'getBlom%02dBitmap' % x) + for x in range(12): + f = getattr(images, 'getLB%02dBitmap' % (x+1)) bmp = f() il.Add(bmp) self.AssignImageList(il) @@ -57,8 +43,6 @@ class TestLB(wx.Listbook): "You can put nearly any type of window here,\n" "and the list can be on any side of the Listbook", wx.Point(10, 10)) - #st.SetForegroundColour(wxWHITE) - #st.SetBackgroundColour(wxBLUE) first = False self.Bind(wx.EVT_LISTBOOK_PAGE_CHANGED, self.OnPageChanged)