Perl/Tk GUI blocked on a read access 
Author Message
 Perl/Tk GUI blocked on a read access

Dear Perl/Tk hackers,

I am quite lost at the time.
I developped a small perl/Tk application, and I don't know how to solve
following problem.
I want to redirect the output of a process to one of the Text widgets I
have in my GUI.
To do this, I wrote following...

        open FD, "simu_to_redirect |";

        while (<FD>){
                $text->insert('end', $_);   # text widget where I plan
                                            # to write the simu result
                $root->update;              # should update the GUI an
                                            # allow the user to click
                                            # on other widgets

The problem with this code is that simu_to_redirect outputs data
sporadically, and in the meantime my GUI is not refreshed (because we
are blocked on the read statement, before the update).
I tried to play with the sysopen()/select() functions, but without

I am sure it is a common problem, but I need your help!
Code snippets would also be welcome!

Thanx in advance!

Sent via http://www.*-*-*.com/
Before you buy.

Mon, 22 Jul 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Perl/Tk GUI blocked on a read access

2. Tcl::Tk and Tcl modules are available to provide Tk GUI to perl

3. Why do non-blocking reads block?

4. Perl/Tk development positions in sunny FLorida;GUI,graphics,Perl

5. perl problem, accessing file blocks my script

6. tkperl vs. tk for GUI to perl script

7. Using perl Tk:: versus HTML forms for GUI front-end

8. perl/tk gui design?

9. Help: GUI builder for Perl / TK

10. using perl/tk with win32::gui

11. Free GUI developer for Perl/Tk?

12. A graphical Perl/TK GUI builder


Powered by phpBB® Forum Software