grey out a button in wxPython Topic is solved

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
User avatar
pikkip
Knows some wx things
Knows some wx things
Posts: 37
Joined: Mon Sep 26, 2016 6:08 am

grey out a button in wxPython

Post by pikkip »

I am working with buttons in wxPython. I want to grey out a button for 5 seconds. How is it done? :?
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: grey out a button in wxPython

Post by doublemax »

wxWindow::Enable(false);
Then you need a timer with a 5 second timeout.
wxWindow::Enable(true); to enable it again.
Use the source, Luke!
Post Reply