axis3x3 has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I know it's really horrible, but with Tk800 I could do this:
sub launch_progress { my $main_window = MainWindow->new; my $tk_progressbar = $main_window->ProgressBar( -width => 20, -height => 300, -from => 0, -to => 100, )->pack( -fill=>"x", -pady => 24, -padx => 8 ); $main_window->after(1000, sub{goto ret;}); MainLoop(); ret: return $tk_progressbar; }
The above function creates a window containing a Tk::ProgressBar and then returns to the code that called it within the event triggered by "after".
I know it's nasty, but it worked.
Now, using Tk804, it just freezes, and refuses to work. Does anyone have any idea why?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using a goto in a $main_window->after command
by PodMaster (Abbot) on Jun 04, 2004 at 09:35 UTC | |
by eserte (Deacon) on Jun 04, 2004 at 09:46 UTC | |
by axis3x3 (Acolyte) on Jun 04, 2004 at 11:08 UTC |