Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: how to fork & join in tk?

by kcott (Archbishop)
on Apr 23, 2017 at 05:46 UTC ( [id://1188661]=note: print w/replies, xml ) Need Help??


in reply to how to fork & join in tk?

G'day redss,

There's no need to use fork (or anything like that). The functionality you want is built in. Take a look at Tk::after.

There's a number of ways to use this. From your description, the non-blocking form you'll want in this case will probably be:

$id = $widget->after(ms?,callback?)

See that documentation for more details. Note the time is in milliseconds. The $id is only needed if you subsequently want to use $id->time(?delay?).

— Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-23 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found