#!/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!
In reply to Re: TK Button modification
by kwoff
in thread TK Button modification
by Bloodelf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |