-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to set a timer #728
Comments
[I 13:56:06 flexx.app] Starting Flexx event loop. |
my code here: class ScrollExample(flx.Widget):
from threading import Thread if name == 'main':
|
I have stranded with the issue for days, I am some new for flexx, hope somebodies can help solve it |
Thank you for your response, I attached the code file above. |
I think you are doing it wrong. I would use threading to do this, but I think you can manage to do something using threads, but it comes with Here is what I would do:
There are alternative designs, like
But I changed the code to make it more like I feel is the best way to go.
Hope that helps and gets out started. |
konubinix: |
I agree with @Konubinix's answer: For completeness, if you're only interested in a timer on the JS side, use window.setTimeout or window.setInterval. |
I need to set a timer. Repeatedly a function checks whether data is updated, if yes update the gui face ? In flexx, does it has this functionality?
The text was updated successfully, but these errors were encountered: