Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Perl/Tk window contents disappear when obscured then revealed

by choroba (Chancellor)
on Jan 22, 2013 at 13:53 UTC ( #1014660=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl/Tk window contents disappear when obscured then revealed
in thread Perl/Tk window contents disappear when obscured then revealed

"carry on processing" is not an event. Start the program in the background, make its finish an event.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^3: Perl/Tk window contents disappear when obscured then revealed

Replies are listed 'Best First'.
Re^4: Perl/Tk window contents disappear when obscured then revealed
by Another Ed (Sexton) on Jan 22, 2013 at 14:18 UTC

    Hi choroba, you've lost me a bit here. thundergnat suggested I run the external program with 'start', which I believe puts the program into the background on Windows. As I replied to his post, doing this means that Perl doesn't wait for the external program to finish, but steams on regardless. That is no good to me.

    It would be nice if there were some way of making Perl wait. You say "make its finish an event". That sounds promising, except that I haven't a clue how to translate that into code. Surely we're hampered here by the fact that Windows doesn't have a readily accessible process table, so I can't do things like 'system ("ps", ...)'?

    One thing that's occurred to me is that I could try a 'fork' call for the external process, combined with 'waitpid'. These, I understand, are emulated on Windows by Perl. It just seems a bit of a sledgehammer to crack this nut, but at the rate this thing is going, I will have to try it.

    Ed

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014660]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2016-12-06 19:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (114 votes). Check out past polls.