interrupt the after method?
philip stöver
pstoever at tennessee.uni-karlsruhe.de
Thu Nov 27 20:27:15 EST 2003
philip stöver wrote:
> I got something like
>
> after(2000, myMethod)
>
> Is there any way, to stop the after method from calling myMethod?
> My problem is, that myMethod might be called directly (within 2000 ms)
> in which case I don't want it to be called again through the after method.
Problem solved. after_cancel(id) was what I've been looking for.
philip
More information about the Python-list
mailing list