Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Subs attached to Tk Buttons

by fletcher_the_dog (Friar)
on Aug 20, 2004 at 16:39 UTC ( #384649=note: print w/replies, xml ) Need Help??


in reply to Subs attached to Tk Buttons

Another way to do it besides what others have already told you is to use a closure
$widget->Button(-text=>"mybutton",-command=>sub { mysub("a1","a2",@_) +};

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2021-09-28 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?