Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/engine.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorius/engine.py')
-rw-r--r--tutorius/engine.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tutorius/engine.py b/tutorius/engine.py
index 192bdde..57c08e4 100644
--- a/tutorius/engine.py
+++ b/tutorius/engine.py
@@ -9,15 +9,16 @@ class Engine:
def __init__(self):
# FIXME Probe management should be in the probe manager
- dbus.mainloop.DBusGMainLoop(set_as_default=True)
+ dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
self._probe = ProbeProxy("org.laptop.Calculate")
+ self._bm = None
def launch(self, tutorialID):
""" Launch a tutorial
@param tutorialID unique tutorial identifier used to retrieve it from the disk
"""
- if self._bm = None:
+ if self._bm == None:
self._bm = addon.create("BubbleMessage")
self._bm.position = (300,300)
self._bm.message = "Tutorial Started"