Why does Delay expect integer?

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Why does Delay expect integer?

Postby velocity » Thu Oct 13, 2016 12:45 pm

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?
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: Why does Delay expect integer?

Postby satoon101 » Thu Oct 13, 2016 1:14 pm

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
Image

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 25 guests