diff options
author | Wade Brainerd <wadetb@gmail.com> | 2008-12-27 04:43:17 (GMT) |
---|---|---|
committer | Wade Brainerd <wadetb@gmail.com> | 2008-12-27 04:43:17 (GMT) |
commit | 33bb1e4622c7f6618caa745c3fd03fe21984029b (patch) | |
tree | f1388083efb41872e58f6fecbcc485ea0a6f58b6 /typingturtle.py | |
parent | 53b28b841ace131e7bf5f4c54c05acdf5f570584 (diff) |
Work in progess on lesson builder.
Starting to clean up the UI.
Hands partially disabled due to Cairo performance issues.
Diffstat (limited to 'typingturtle.py')
-rwxr-xr-x | typingturtle.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/typingturtle.py b/typingturtle.py index 5e5342d..8f5fdb2 100755 --- a/typingturtle.py +++ b/typingturtle.py @@ -19,6 +19,10 @@ import logging, os, math, time, copy, json, locale, datetime, random, re from gettext import gettext as _ +# Set up remote debugging. +#import dbgp.client +#dbgp.client.brkOnExcept(host='192.168.1.104', port=12900) + # Set up localization. locale.setlocale(locale.LC_ALL, '') @@ -39,6 +43,9 @@ logging.basicConfig() # Import activity modules. import mainscreen, lessonscreen, medalscreen +# Set to True to allow access to all lessons. +DEBUG_LESSONS = True + # This is the main Typing Turtle activity class. # # It owns the main application window, and all the various toolbars and options. @@ -62,6 +69,9 @@ class TypingTurtle(sugar.activity.activity.Activity): 'history': [], 'medals': {} } + + if DEBUG_LESSONS: + self.data['level'] = 1000 # This has to happen last, because it calls the read_file method when restoring from the Journal. self.set_canvas(self.screenbox) |