Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/hoparound.py
diff options
context:
space:
mode:
Diffstat (limited to 'hoparound.py')
-rw-r--r--hoparound.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/hoparound.py b/hoparound.py
index 9d98c5e..a267452 100644
--- a/hoparound.py
+++ b/hoparound.py
@@ -1,6 +1,6 @@
from data import LevelData
from view import Views
-import gtk, locale
+import gtk, locale, gobject
from sugar.activity import activity
import locale
@@ -43,8 +43,9 @@ class HopaRoundActivity(activity.Activity):
self.ui.answer_nan()
else:
if self.data.check_answer(num):
- self.ui.answer_correct(self.data)
+ self.ui.answer_correct(self.data)
else:
self.ui.answer_incorrect(self.data)
+ gobject.timeout_add(2000, self.ui.clear, self.data)
self.setup(self.data, self.ui)