in reply to Graphical User Interface && Perl
1. Run the backticked program in a thread, and signal back to the main GUI when it is done, through a shared variable, or a return value.
2. If the dhcp client puts out debug information, while it is searching, you can use a "piped open" instead of backticks, and use select or fileevent on the filehandle, and that select callback can be used to update the gui, or tell it when to quit.
3. You could run the Gtk activity mode progressbar in it's own separate thread. You would have a main script, which starts a thread with the mindless activity indicator going , then run the backticked program from the main script, and the line after it, kill and join the indicator thread.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Graphical User Interface && Perl
by turo (Friar) on Dec 27, 2005 at 08:39 UTC |