Hello Monks,
I'm looking to see if there is any kind of widget out there which is basically like an hourglass type of thing.
What I REALLY wanted to use was the
Gtk2::ProgressBar but I don't think I can. What I'm "trying" to do is this...
My MAIN window widget contains a Table, then in the table I have some Buttons, RadioButtons, Entry Widgets, etc...
So when the user clicks MY "Submit" button it captures all the information provided and then executes another Perl
script I have. The Perl script being executed uses the data captured from the Widgets described above as CMD Line Args.
Since the other Perl script being executed creates a TCP socket to send the data to a server, sometimes it can take up
to 15 seconds or so to complete executing.
What I wanted to do ORIGINALLY, was to have a ProgressBar showing the progress of the other script which gets executed. I created
a test script using the ProgressBar and it works great... But here lies my problem! I didn't even think of it until after I created
the test script which uses the ProgressBar
(*fraction incremented += .1 on each click of a button), that I can't simply send
the command below:
$progress_bar->set_fraction($fraction);
... in order to move along the ProgressBar so the user knows how far along it is... Would this be possible at all? Because I was thinking
that since I'm executing my secondary script using the
system() command, that my Gtk2 script will just halt until the system command
returns. So I realized I wouldn't know what the script was doing until it returned from the system() command.... Is that correct to assume? Or
is there some other way to achieve that?
So since I can't tell what's going on in the script that executes from the Gtk2 script, I was thinking instead of a ProgressBar I would simply
use something that's like an HourGlass... OR I know I've seen some things where it looks like a circle with arms coming out of it and as it
"plays/runs" it looks like its spinning... Not sure if I explained that correctly but basically it works like an Hourglass type of thing...
Anybody have any idea if there is anything like that in Perl::Gtk2?
I looked over all the Widgets I could find but maybe I missed something...
Any thoughts or suggestions would be GREATLY appreciated!
Thanks in Advance,
Matt