ciryon has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a Perl/Gtk program that basically works this way:
This is working perfectly. What I want to do now is to add a statusbar that says "Please select an option" when the program is launched and changes to "Please wait..." when the "Get" button is clicked. My current problem is that the "Please wait..." message isn't displayed until the wait is over. :-(
Part of the code looks like:
and the callback for the clicked button:$statusbar = new Gtk::Statusbar(); $vbox->pack_start( $statusbar, $true, $true, 0 ); $statusbar->push( $context_id, "Please select an option" ); $statusbar->show();
Very grateful for some help.sub GetButtonClicked { my $infostring = "Please wait..."; $statusbar->push( $context_id, $infostring); $statusbar->show(); ContactFromDevice(); LoadFileToText(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Statusbar in Perl/Gtk
by traveler (Parson) on Nov 14, 2001 at 21:15 UTC |