Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/typingturtle.py
diff options
context:
space:
mode:
authorWade Brainerd <wadetb@gmail.com>2008-11-10 21:07:07 (GMT)
committer Wade Brainerd <wadetb@gmail.com>2008-11-10 21:07:07 (GMT)
commitca20fcdf3c2a3583227563531da8574fea993ccc (patch)
treea0ee2199ad819648c9bc10e8992caa1b0b2ded30 /typingturtle.py
parent8056a0e856c458c4e57dc86bdc2f373a8f1be4a8 (diff)
Bug fixes, slight cleanup of keyboard module.
Diffstat (limited to 'typingturtle.py')
-rwxr-xr-xtypingturtle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/typingturtle.py b/typingturtle.py
index 1d1821a..6411e6f 100755
--- a/typingturtle.py
+++ b/typingturtle.py
@@ -75,7 +75,7 @@ class LessonScreen(gtk.VBox):
frame.add(self.lessonscroll)
self.keyboard = keyboard.Keyboard()
- self.keyboard.set_layout(keyboard.default_layout)
+ self.keyboard.set_layout(keyboard.DEFAULT_LAYOUT)
activity.add_events(gtk.gdk.KEY_PRESS_MASK)
activity.connect('key-press-event', self.key_press_cb)
@@ -152,7 +152,7 @@ class LessonScreen(gtk.VBox):
# Add to the game history.
self.activity.add_history({
'lesson': self.lesson['name'],
- 'time': self.time,
+ 'time': self.total_time,
'wpm': self.wpm,
'accuracy': self.accuracy
})
@@ -312,7 +312,7 @@ class TypingTurtle(sugar.activity.activity.Activity):
self.screenbox.pack_start(self.screens[-1])
def add_history(self, entry):
- self.data['history'].push(entry)
+ self.data['history'].append(entry)
def read_file(self, file_path):
if self.metadata['mime_type'] != 'text/plain':