-# 11/4/03 - grimmtooth@softhome.net (Jeff Grimmett)
-#
-# o Updated to use wx namespace
-#
-# 11/24/03 - grimmtooth@softhome.net (Jeff Grimmett)
-#
-# o Had to move the call to wx.updateColourDB()
-# o Updated several places to change discrete pos and size parameters
-# into two-tuples.
-#
import wx
-import wx.lib.colourdb as cdb
+import wx.lib.colourdb
import images
wx.ScrolledWindow.__init__(self, parent, -1)
# Populate our color list
- self.clrList = cdb.getColourList()
+ self.clrList = wx.lib.colourdb.getColourList()
# Just for style points, we'll use this as a background image.
#self.clrList.sort()
dc.EndDrawing()
-# On wxGTK there needs to be a panel under wxScrolledWindows if they are
-# going to be in a wxNotebook. And, in the demo, we are.
+# On wxGTK there needs to be a panel under wx.ScrolledWindows if they are
+# going to be in a wxNotebook. And, in this demo, we are.
class TestPanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent, -1)
# Note 11/24/03 - jg - I moved this into runTest() because
# there must be a wx.App existing before this function
# can be called - this is a change from 2.4 -> 2.5.
- cdb.updateColourDB()
+ wx.lib.colourdb.updateColourDB()
win = TestPanel(nb)
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:])