grey out a button in wxPython Topic is solved
-
- Knows some wx things
- Posts: 37
- Joined: Mon Sep 26, 2016 6:08 am
grey out a button in wxPython
I am working with buttons in wxPython. I want to grey out a button for 5 seconds. How is it done?
-
- Moderator
- Posts: 19164
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
Re: grey out a button in wxPython
wxWindow::Enable(false);
Then you need a timer with a 5 second timeout.
wxWindow::Enable(true); to enable it again.
Then you need a timer with a 5 second timeout.
wxWindow::Enable(true); to enable it again.
Use the source, Luke!