Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Perl tk gui freezes after pop up list is launched. (readline)

by Anonymous Monk
on Nov 29, 2015 at 23:26 UTC ( #1148836=note: print w/replies, xml ) Need Help??


in reply to Re: Perl tk gui freezes after pop up list is launched.
in thread Perl tk gui freezes after pop up list is launched.

readline is blocking, this part      while (defined ($freeze_line =<freeze_script>) )  

while that is happening MainLoop is stuck

This is typical of perl on windows

Re^5: Client/Server sockets with TK on Win32, tk, fileevent, and MS Windows, Re: Please suggest a non-forking way to do this (OS: windows) (solution)

The OP should be using modules to organize his code ... or if he really wants to stick with capturing the output of other scripts he should use threads

  • Comment on Re^2: Perl tk gui freezes after pop up list is launched. (readline)
  • Download Code

Replies are listed 'Best First'.
Re^3: Perl tk gui freezes after pop up list is launched. (readline)
by kcott (Bishop) on Nov 30, 2015 at 00:35 UTC

    I wasn't aware of that OS-specific issue. Thanks for the heads-up.

    Using modules, instead of piping output from another GUI, was my first thought. My intent was to identify the issue and (hopefully) provide a better solution. Being unable to reproduce the problem rather put paid to that plan.

    — Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1148836]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-02-25 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (113 votes). Check out past polls.

    Notices?