Page 1 of 1

Why does Delay expect integer?

Posted: Thu Oct 13, 2016 12:45 pm
by velocity
The code below works.

Syntax: Select all

from listeners.tick import Delay

Delay(0.5, <function_name>)


But my IDLE says the function expects integer and not float? Am I suppose to use an alternative method?

Re: Why does Delay expect integer?

Posted: Thu Oct 13, 2016 1:14 pm
by satoon101
That was a mistake in the doc-string which will be fixed once we pull this pull request:
https://github.com/Source-Python-Dev-Te ... n/pull/156