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.
In reply to creating multiple widgets at runtime by arunmep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |