Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/keyboard.py
diff options
context:
space:
mode:
authorLive System User <liveuser@localhost.localdomain>2009-02-26 01:52:06 (GMT)
committer Live System User <liveuser@localhost.localdomain>2009-02-26 01:52:06 (GMT)
commit1a6c518673dc43062b37459efe942479911c53b7 (patch)
tree0f8095deaa7774b8b5d80322180cac181bee92fc /keyboard.py
parent5ede2990f222d762cf047dccaee2ec988984ab8e (diff)
TitleScene separated into its own module and resolution independent.
Diffstat (limited to 'keyboard.py')
-rw-r--r--keyboard.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/keyboard.py b/keyboard.py
index 81eaa5e..c4bbfb5 100644
--- a/keyboard.py
+++ b/keyboard.py
@@ -23,8 +23,6 @@ import rsvg
import os, glob
import pango
-import sugar.activity.activity
-
# Tweaking variables.
KEYBOARD_SCALE = 1.25
HAND_SCALE = 1.4
@@ -229,9 +227,7 @@ class KeyboardImages:
self.images = {}
def load_images(self):
- bundle_path = sugar.activity.activity.get_bundle_path()
- path = os.path.join(bundle_path, 'images')
- for filename in glob.iglob(path + '/*.svg'):
+ for filename in glob.iglob('images/OLPC_*.svg'):
image = gtk.gdk.pixbuf_new_from_file_at_size(filename, self.width, self.height)
name = os.path.basename(filename)
self.images[name] = image