Dirk80 has asked for the wisdom of the Perl Monks concerning the following question:
My goal is it to see a button for 1 second and then it shall disappear. The following code is NOT working. It seems that the GUI is NOT updated after the first pack command. How can I force Perl/Tk to update the GUI after the first pack command?
Thank you very much for your help#!/usr/bin/perl use Tk; my $mw = new MainWindow; my $button = $mw->Button('-text' => 'GO')->pack; sleep(1); $button->packForget(); MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to force Perl/Tk to update the GUI?
by zentara (Cardinal) on Nov 12, 2009 at 12:57 UTC | |
|
Re: How to force Perl/Tk to update the GUI?
by keszler (Priest) on Nov 12, 2009 at 11:42 UTC | |
|
Re: How to force Perl/Tk to update the GUI?
by fmerges (Chaplain) on Nov 12, 2009 at 11:43 UTC |