Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Answer: How do I disable ("grey out") buttons?

( #86269=categorized answer: print w/ replies, xml ) Need Help??

Q&A > GUI Programming > How do I disable ("grey out") buttons? contributed by Eradicatore

Following up on the previous answer: To enable the button again, you simply do this:

$button->configure( -state => 'normal' );
Note: In my experience with Tk on Win32 and UNIX platforms, I've found that Win32 uses 'disable' while UNIX uses 'disabled'.

Comment on Answer: How do I disable ("grey out") buttons?
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2015-08-03 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (30 votes), past polls