in reply to Re: creating multiple widgets at runtime
in thread creating multiple widgets at runtime
Not alltogether true. The following is ok and can be usefull:
use strict; use warnings; use Tk; my $main = MainWindow->new (); $main->Button (-text => "Close", -command => sub{$main->destroy ();})- +>pack(); MainLoop; $main = MainWindow->new (); $main->Button (-text => "Close too", -command => sub{$main->destroy () +;})->pack(); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: creating multiple widgets at runtime
by mawe (Hermit) on Jul 25, 2005 at 05:46 UTC | |
by GrandFather (Saint) on Jul 25, 2005 at 06:49 UTC |