Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/OficinaActivity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2011-05-12 20:05:58 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2011-05-12 20:05:58 (GMT)
commit0038e5ceb9497774952851c2a91b7acd5dc026b3 (patch)
tree1e426b6e89ee3bc63463136584881e3ba7cb394f /OficinaActivity.py
parentafecca36600205998891e6c08f5b4c85fbfa60fe (diff)
Change the size of tools with the keys "+" and "-" - OLPC #8865
I have modified the use of the slider because the HS keyboards have different mappings
Diffstat (limited to 'OficinaActivity.py')
-rw-r--r--OficinaActivity.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/OficinaActivity.py b/OficinaActivity.py
index 4096a83..86175c2 100644
--- a/OficinaActivity.py
+++ b/OficinaActivity.py
@@ -125,9 +125,11 @@ class OficinaActivity(activity.Activity):
self._setup_handle = self.connect('map', map_cp)
def key_press(self, widget, event):
- sliders = {65474: -5, 65475: -1, 65476: 1, 65477: 5}
- if event.keyval in sliders:
- self.area.change_line_size(sliders[event.keyval])
+ print event.keyval
+ if event.keyval == 45:
+ self.area.change_line_size(-1)
+ if event.keyval == 43:
+ self.area.change_line_size(1)
def read_file(self, file_path):
'''Read file from Sugar Journal.'''