arunmep has asked for the wisdom of the Perl Monks concerning the following question:
but i get only the last widget please suggest me a waywhile(@array) { $file=pop @array; $top->Button(-text => "Click Me",-command => sub{ system "start c:/WIN +NT/system32/notepad.exe $file" })->pack(); $x=$x+10; MainLoop; }
Edited by Chady -- replaced font tags with code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: creating multiple widgets at runtime
by GrandFather (Saint) on Jul 25, 2005 at 03:50 UTC | |
by arunmep (Beadle) on Jul 25, 2005 at 03:59 UTC | |
by GrandFather (Saint) on Jul 25, 2005 at 04:07 UTC | |
|
Re: creating multiple widgets at runtime
by greenFox (Vicar) on Jul 25, 2005 at 04:35 UTC | |
|
Re: creating multiple widgets at runtime
by pg (Canon) on Jul 25, 2005 at 05:14 UTC | |
|
Re: creating multiple widgets at runtime
by AReed (Pilgrim) on Jul 25, 2005 at 04:00 UTC | |
by pg (Canon) on Jul 25, 2005 at 04:49 UTC | |
by GrandFather (Saint) on Jul 25, 2005 at 05:12 UTC | |
by mawe (Hermit) on Jul 25, 2005 at 05:46 UTC | |
by GrandFather (Saint) on Jul 25, 2005 at 06:49 UTC |