Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Perl Tk Button Disabled

by haj (Vicar)
on Oct 24, 2022 at 20:29 UTC ( [id://11147648]=note: print w/replies, xml ) Need Help??


in reply to Perl Tk Button Disabled

My question is simple.

May I ask you to spend some effort to actually write down your question?

In your code, sub three and sub four do exactly the same thing, but you seem to expect them to behave differently. If sub four does $Button1->configure(-state => "normal");, then button 1 will be enabled, period. Maybe you want to query the state of your sensor in sub four? Only, I don't see any sensor in your code.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147648]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-16 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found