]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ColourSelect.py
Reworked how stock objects are initialized. They now have an
[wxWidgets.git] / wxPython / demo / ColourSelect.py
index 8f220642fa5c03cf3df3265299ec5b7f276248bc..6f2a9e14657b3d50360eca3a61b09099ddbade61 100644 (file)
@@ -56,7 +56,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),