TkAfter module

What exactly is the TkAfter module for? Can anyone point me to an example? I
am hoping it will allow me to process after an event as well as before.

Albert Wagner wrote:

What exactly is the TkAfter module for? Can anyone point me to an example? I
am hoping it will allow me to process after an event as well as before.

sample code from Mr Nagai:

@timer = TkAfter.new(interval, 1, proc{show})
@timer.start

“show” will be called by Tk.mainloop after “interval” ms.

(1: don’t loop, -1: loop if I remember well. please verify in tkafter.rb
:slight_smile:

jf

···


/ do you play Go? \

http://jeanfrancois.menon.free.fr/rubygo |
\ /


    \   ^__^
     \  (oo)\_______
        (__)\       )\/\
            >>----w |
            >>     >>

Thank you.