Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mainscreen.py
diff options
context:
space:
mode:
authorLive System User <liveuser@localhost.localdomain>2009-02-26 02:25:57 (GMT)
committer Live System User <liveuser@localhost.localdomain>2009-02-26 02:25:57 (GMT)
commit9c08c5d74316fcee993c62c9cf0169179669b6bd (patch)
tree6d4df604affe82f3acd8b0217a4d7cd96a449f13 /mainscreen.py
parent1a6c518673dc43062b37459efe942479911c53b7 (diff)
Resolution independent keyboard. Needs testing on XO.
Working on eliminating key beeps from the lesson screen.
Diffstat (limited to 'mainscreen.py')
-rw-r--r--mainscreen.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mainscreen.py b/mainscreen.py
index 1c82f3e..6c3735a 100644
--- a/mainscreen.py
+++ b/mainscreen.py
@@ -90,7 +90,9 @@ class MainScreen(gtk.VBox):
self.lessons.sort(lambda x, y: x.get('order', 0) - y.get('order', 0))
# Load all the keyboard images.
- self.keyboard_images = keyboard.KeyboardImages()
+ width = int(gtk.gdk.screen_width())
+ height = int(gtk.gdk.screen_height()*0.4)
+ self.keyboard_images = keyboard.KeyboardImages(width, height)
self.keyboard_images.load_images()
navbox = gtk.HBox()