X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b72277062ff283f11041a3e231b352899b203ed..8bc0c17afc3a83b625a6109375bf86a126cac69e:/wxPython/wx/lib/colourselect.py?ds=sidebyside diff --git a/wxPython/wx/lib/colourselect.py b/wxPython/wx/lib/colourselect.py index 20fb0d0e35..5edba11b67 100644 --- a/wxPython/wx/lib/colourselect.py +++ b/wxPython/wx/lib/colourselect.py @@ -32,6 +32,12 @@ # o Updated for 2.5 compatability. # +""" +Provides a `ColourSelect` button that, when clicked, will display a +colour selection dialog. The selected colour is displayed on the +button itself. +""" + #---------------------------------------------------------------------------- import wx @@ -54,7 +60,7 @@ EVT_COLOURSELECT = wx.PyEventBinder(wxEVT_COMMAND_COLOURSELECT, 1) #---------------------------------------------------------------------------- class ColourSelect(wx.BitmapButton): - def __init__(self, parent, id, label="", colour=wx.BLACK, + def __init__(self, parent, id=wx.ID_ANY, label="", colour=wx.BLACK, pos=wx.DefaultPosition, size=wx.DefaultSize, callback=None, style=0): if label: