http://qs1969.pair.com?node_id=1105786


in reply to Re^3: A question on using Tk::ItemStyle in Tk::Tree
in thread A question on using Tk::ItemStyle in Tk::Tree

choroba,

Thanks for pointing me to this Tk::after. However, I must honestly admit that I'm having difficulty in understanding the docs.

Firstly, the after method has only two forms.
  1. after(*ms)
  2. after(*ms,*callback)
    In both forms the first parameter is time delay and this should be specified in milliseconds. But Khen1950fx's construct specifies a string 'idle'

    Secondly, the second parameter is the callback whose execution has to be delayed. But in Khen1950fx's construct the method after is called on an instance of MainWindow and does not specify any name of the callback method whose execution is to be delayed.

But fundamentally speaking though, how does delaying the execution of a callback get helpful?

I'm unable to find any other docs on this. So please let me know. Thanks in advance