Q&A > GUI Programming > How do I disable ("grey out") buttons? - Answer contributed by Jouke
Assuming you are using Tk, not Win32::GUI, you would do it like this:
$button->configure( -state => 'disabled' );
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (449 votes). Check out past polls.