X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..86aafce32e5f471b0c84fa611ed51bdea85691df:/wxPython/demo/ColourSelect.py diff --git a/wxPython/demo/ColourSelect.py b/wxPython/demo/ColourSelect.py index 8f220642fa..01065dd37b 100644 --- a/wxPython/demo/ColourSelect.py +++ b/wxPython/demo/ColourSelect.py @@ -15,20 +15,7 @@ # - use sizers # - other minor "improvements" #---------------------------------------------------------------------------- -# 11/22/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for V2.5 -# -# 11/24/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Added Bind() handlers to what events can handle it. However, the -# colourselect library must be converted before its events can be -# bound using the Bind() method. -# -# 12/01/2003 - Jeff Grimmett (grimmtooth@softhome.net) # -# o colourselect lib converted; demo converted to match. -# import wx import wx.lib.colourselect as csel @@ -56,7 +43,7 @@ class TestColourSelect(wx.Panel): # show a button with all default values self.colourDefaults = csel.ColourSelect(self, -1) - self.colourDefaults.Bind(csel.EVT_COLOURSELECT, self.OnSelectColour, self.colourDefaults.GetId()) + self.Bind(csel.EVT_COLOURSELECT, self.OnSelectColour, id=self.colourDefaults.GetId()) buttonSizer.AddMany([ (wx.StaticText(self, -1, "Default Colour/Size"), 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL), @@ -118,12 +105,12 @@ def runTest(frame, nb, log): overview = """\ - +A coloured button that when clicked allows the user to select a colour from the wxColourDialog. """ 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:])