Re: [gtk-list] gtk-perl help
- From: Erik Mouw <J A K Mouw its tudelft nl>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] gtk-perl help
- Date: Thu, 11 Nov 99 10:56:45 +0100
On Wed, 10 Nov 1999 15:10:59 -0500, Steve Cresawn wrote:
> I'm writing an application using the GTK-Perl bindings, and I have a
> fairly simple question. Within a subroutine of my application, I need
> to start another external application. This will be done repeatedly, as
> calls to this external application are numerous. This application takes
> a while to run, say 10 seconds or so, and during that time, the GTK
> windows do not redraw. I have been experimenting with many ways to
> start this process (fork, system, open), and also using the waitpid
> function. It is important that after a process has been spawned it is
> allowed to complete before it is called again. I have also tried
> including statements such as the following:
>
> while (Gtk->events_pending)
> {
> Gtk->main_iteration;
> }
>
> Still no luck. I'd really appreciate some help with this.
Have a look at the GTK FAQ:
http://www.gtk.org/faq/gtkfaq-5.html#ss5.3
The example is in C, but I think you should be able to rewrite it in Perl.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2785859 Fax: +31-15-2781843 Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]