Color Buttons

Why doesn't this work.

        mybutton=wxButton(self,-1,"", pos=wxPoint(300,200))
        mybutton.SetBackgroundColour(wxBLUE)

The button flashes blue for a second then renders in grey.

Mike Wagman wrote:

Why doesn't this work.

        mybutton=wxButton(self,-1,"", pos=wxPoint(300,200))
        mybutton.SetBackgroundColour(wxBLUE)

The button flashes blue for a second then renders in grey.

And your platform is?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!