close
Warning:
AdminModule failed with TracError: Unable to instantiate component <class 'trac.ticket.admin.ComponentAdminPanel'> (super(type, obj): obj must be an instance or subtype of type)
- Timestamp:
-
Jul 27, 2012, 4:44:34 PM (14 years ago)
- Author:
-
Martin Kolman
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v7
|
v8
|
|
| 97 | 97 | Handles timers in a a graphics toolkit independent way. It currently supports GTK and Qt. |
| 98 | 98 | |
| 99 | | ===== Adding a timer ==== |
| | 99 | ===== Adding a timer ===== |
| | 100 | addTimeout(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 | |
| | 107 | The 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. |
| 100 | 108 | |
| 101 | 109 | |