demosys.timers.vlc.Timer¶
-
demosys.timers.vlc.Timer¶ Timer based on the python-vlc wrapper. Plays the music file defined in
settings.MUSIC. Requirespython-vlcto be installed including the vlc application.
Methods¶
-
Timer.start()¶ Start the music
-
Timer.stop() → float¶ Stop the music
Returns: The current time in seconds
-
Timer.pause()¶ Pause the music
-
Timer.toggle_pause()¶ Toggle pause mode
-
Timer.get_time() → float¶ Get the current time in seconds
Returns: The current time in seconds
-
Timer.set_time(value: float)¶ Set the current time in seconds.
Parameters: value (float) – The new time Raises: NotImplementedError