Changes between Version 7 and Version 8 of SystemDevelopmentEN


Ignore:
Timestamp:
Jul 27, 2012, 4:44:34 PM (12 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SystemDevelopmentEN

    v7 v8  
    9797Handles timers in a a graphics toolkit independent way. It currently supports GTK and Qt.
    9898
    99 ===== Adding a timer ====
     99===== Adding a timer =====
     100addTimeout(self, callback, timeout, caller, description, args=[])
     101''callback'' - method that will be called by the timer[[br]]
     102''timeout'' - timeout in milliseconds[[br]]
     103''caller'' - instance of the calling module[[br]]
     104''description'' - a short string describing what the timer does[[br]]
     105''args'' - an optional list of arguments for the callback function[[br]]
     106
     107The addTimeout method returns an id, that can be used to manipulate the the timer during its lifetime. If the callback method returns == False (must be False, not "", 0, [] or similar), the timer is automatically canceled.
    100108
    101109