# - 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
# 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),
overview = """\
-
+A coloured button that when clicked allows the user to select a colour from the wxColourDialog.
"""