diff options
Diffstat (limited to 'tutorius/service.py')
-rw-r--r-- | tutorius/service.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tutorius/service.py b/tutorius/service.py index c52b7cd..21f0cf1 100644 --- a/tutorius/service.py +++ b/tutorius/service.py @@ -29,7 +29,7 @@ class Service(dbus.service.Object): @dbus.service.method(_DBUS_SERVICE_IFACE, in_signature="s", out_signature="") def launch(self, tutorialID): - """ Launch a tutorial + """ Launch a tutorial @param tutorialID unique tutorial identifier used to retrieve it from the disk """ if self._engine == None: @@ -59,12 +59,19 @@ class ServiceProxy: self._service = dbus.Interface(self._object, _DBUS_SERVICE_IFACE) def launch(self, tutorialID): + """ Launch a tutorial + @param tutorialID unique tutorial identifier used to retrieve it from the disk + """ remote_call(self._service.launch, (tutorialID, ), block=False) def stop(self): + """ Stop the current tutorial + """ remote_call(self._service.stop, (), block=False) def pause(self): + """ Interrupt the current tutorial and save its state in the journal + """ remote_call(self._service.pause, (), block=False) if __name__ == "__main__": |