Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: backgrounding a Tk process

by zentara (Archbishop)
on Oct 10, 2012 at 14:38 UTC ( #998237=note: print w/replies, xml ) Need Help??

in reply to Re^2: backgrounding a Tk process
in thread backgrounding a Tk process

Can you explain why you have two MainLoop calls?

Oops, it was a typo, as I tried to setup the sample script. In your case, since the main script was not a Tk app itself, it wasn't needed. The important line in the example is CORE::exit, as explained in the Caveat to perldoc Tk::exit

I updated the example a bit, to show that if you are forking from an existing Tk GUI, the forks must be done first. Otherwise Tk just hangs.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998237]
LanX ... uhm ... wait...
[Eily]: LanX I don't see the woman
[LanX]: at the right, tanned , gib boobs, chains
[LanX]: big
[Your Mother]: That show, in hindsight, is terribly ominous... playing apologist and glorifier for Vietnam vets. Attempting to neuter violence as a valid tool where no one ever really gets hurt...
[Your Mother]: I wonder just how much that single show influenced the severe cognitive dissonance of my generation in the US.
[LanX]: A Team or McG ?
[Your Mother]: A-Team.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2018-03-19 14:47 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.