You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saif Ahmed edited this page Nov 20, 2021
·
5 revisions
Timers (from version 0.13) are created by using a single line in the string that defines the GUI.
timer 1000 functionName 1
The key word 'timer' identifies the line to the parser. This is followed by the number of milliseconds between each callback to a function, and the functionName can be replaced by any function name that is to be called each passage of the specified interval. The example application is a good way to start.
Please note that some back ends may have a potential for memory leaks. Currently only the GTK version has no apparent issues with the early tests, but this may be to do more with the backends themselves rather than GUIDeFATE modules. So for now, it is not recommended to use the timer with any backend other than Gtk.