@@ -916,28 +916,42 @@ class TimerBase(object):
916916 event loops.
917917
918918 Mandatory functions that must be implemented:
919- * _timer_start: Contains backend-specific code for starting the timer
920- * _timer_stop: Contains backend-specific code for stopping the timer
919+
920+ * `_timer_start`: Contains backend-specific code for starting
921+ the timer
922+
923+ * `_timer_stop`: Contains backend-specific code for stopping
924+ the timer
921925
922926 Optional overrides:
923- * _timer_set_single_shot: Code for setting the timer to single shot
924- operating mode, if supported by the timer object. If not, the Timer
925- class itself will store the flag and the _on_timer method should
926- be overridden to support such behavior.
927- * _timer_set_interval: Code for setting the interval on the timer, if
928- there is a method for doing so on the timer object.
929- * _on_timer: This is the internal function that any timer object should
930- call, which will handle the task of running all callbacks that have
931- been set.
927+
928+ * `_timer_set_single_shot`: Code for setting the timer to
929+ single shot operating mode, if supported by the timer
930+ object. If not, the `Timer` class itself will store the flag
931+ and the `_on_timer` method should be overridden to support
932+ such behavior.
933+
934+ * `_timer_set_interval`: Code for setting the interval on the
935+ timer, if there is a method for doing so on the timer
936+ object.
937+
938+ * `_on_timer`: This is the internal function that any timer
939+ object should call, which will handle the task of running
940+ all callbacks that have been set.
932941
933942 Attributes:
934- * interval: The time between timer events in milliseconds. Default
935- is 1000 ms.
936- * single_shot: Boolean flag indicating whether this timer should
937- operate as single shot (run once and then stop). Defaults to False.
938- * callbacks: Stores list of (func, args) tuples that will be called
939- upon timer events. This list can be manipulated directly, or the
940- functions add_callback and remove_callback can be used.
943+
944+ * `interval`: The time between timer events in
945+ milliseconds. Default is 1000 ms.
946+
947+ * `single_shot`: Boolean flag indicating whether this timer
948+ should operate as single shot (run once and then
949+ stop). Defaults to `False`.
950+
951+ * `callbacks`: Stores list of (func, args) tuples that will be
952+ called upon timer events. This list can be manipulated
953+ directly, or the functions `add_callback` and
954+ `remove_callback` can be used.
941955 '''
942956 def __init__ (self , interval = None , callbacks = None ):
943957 #Initialize empty callbacks list and setup default settings if necssary
0 commit comments