Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: TK Button modification

by kwoff (Friar)
on Nov 14, 2001 at 05:02 UTC ( [id://125190]=note: print w/replies, xml ) Need Help??


in reply to TK Button modification

Here's an example:
#!/usr/local/bin/perl -w use Tk; use strict; my $mw = MainWindow->new(); my $button = $mw->Button(); $button->configure(-text => 'DISCONNECTED', -command => sub { do_connect($button) }); $button->pack(); MainLoop(); sub do_connect { my $button = shift; $button->configure(-text => 'CONNECTED'); }

FYI: there's a nice newsgroup devoted to Perl/Tk!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-28 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found