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(); }
In reply to Statusbar in Perl/Gtk by ciryon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |