Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Perl Tk Asynchronous Progress Updates

by BrowserUk (Patriarch)
on Jul 01, 2013 at 22:05 UTC ( [id://1041930]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl Tk Asynchronous Progress Updates
in thread Perl Tk Asynchronous Progress Updates

For some reason the callback function is now executed immediately... $button->after(0, [\&update, \$prog ]);

What do you think that 0 (zero) that you have as the first argument to ->after() means?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Perl Tk Asynchronous Progress Updates
by Anonymous Monk on Jul 02, 2013 at 15:39 UTC
    When I said "immediately" I mean't before the gui is run as opposed to after a button is clicked. I assumed (it appears incorrectly) that tieing the callback via "after" from the button widget would only result in execution upon the widget's activation (button click). This is still my ultimate goal.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found