water has asked for the wisdom of the Perl Monks concerning the following question:
The user can select a product to work on from a top menu in the window.
Currently, I am doing something brutish to rebuild the window when the user selects a new product to work on:
Destroying the whole window seems a very crude way to refresh it. It also causes a noticable blink of almost a second.# note: $TOP is a global, the MainWindow sub create_screen { $TOP->destroy if $TOP; # brutish! $TOP = MainWindow->new( title => 'product' ); $TOP->optionAdd( "*tearOff", "false" ); ... etc ...
What's the polite way to redraw the screen, if some of the widgets weren't/can't be tied with $textvariable, etc?
Thanks, gang, for all the TK advice and help.
It is very much appreciated --
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: TK: rebuild entire main window, more elegant soln?
by BrowserUk (Patriarch) on Oct 10, 2004 at 02:58 UTC | |
|
Re: TK: rebuild entire main window, more elegant soln?
by pg (Canon) on Oct 10, 2004 at 03:59 UTC | |
|
Re: TK: rebuild entire main window, more elegant soln?
by castaway (Parson) on Oct 10, 2004 at 09:19 UTC | |
|
Re: TK: rebuild entire main window, more elegant soln?
by zentara (Cardinal) on Oct 10, 2004 at 13:41 UTC |