![]() |
|
#1
|
|||
|
|||
For Loop in Callbacks?
Hi,
I'm assuming you can't have for loops (or any loops?) inside timer callback functions? I'm getting an invalid syntax error when attempting this. If this is the case, I take it it's due to the for loop possibly taking longer to execute than the time before the callback should be invoked again? Thanks, -DB |
#2
|
|||
|
|||
There is no limitation on what you can do in a callback. The problem is probably that you have invalid syntax in your code. Can you post the code and the Python traceback of the error?
|
#3
|
|||
|
|||
I solved it pretty much after I posted thanks, it was just a newbie syntax error but it confused me as the exact same for loop worked outside of the callback.
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pausing non-timer callbacks | vadrian | Vizard | 1 | 01-25-2005 12:35 PM |