Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Perl Tk Button Disabled

by haj (Priest)
on Oct 24, 2022 at 20:29 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2023-03-24 02:56 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (60 votes). Check out past polls.