Page 1 of 1

grey out a button in wxPython

Posted: Wed May 24, 2017 8:29 am
by pikkip
I am working with buttons in wxPython. I want to grey out a button for 5 seconds. How is it done? :?

Re: grey out a button in wxPython

Posted: Wed May 24, 2017 8:47 am
by doublemax
wxWindow::Enable(false);
Then you need a timer with a 5 second timeout.
wxWindow::Enable(true); to enable it again.