gradientbuttons and the disable color

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

gradientbuttons and the disable color

Hi Folks,

I have written some simple code to change the color of a disabled gradientbutton (import wx.lib.agw.gradientbutton).
class GradientBtn(GB.GradientButton):
    def __init__(self,parent, id=wx.ID_ANY, pos = wx.DefaultPosition, size = wx.DefaultSize, name='', label = '', bitmap=None):   
        GB.GradientButton.__init__(self, parent, id, bitmap, label,  pos, size,style=wx.NO_BORDER,
                                   validator=wx.DefaultValidator, name = name)
    def inactive(self):

But when I started to write the enabled code I asked a question - why isn't there already a disabled and enabled (inactive, active) color change available for the gradientbuttons????  I googled but found nothing - that was a little surprising considering that it's a common standard with buttons to have a disable and enabled color differences.

So the question is has somebody already done the work and I just missed it?  Or is there some reason it not there?   And yes I know there are the PlateButtons - I just like the gradient buttons more.

Thanks in advance for any comments,


You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit