Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNat <natcl@hotmail.com>2007-06-27 21:57:07 (GMT)
committer Nat <natcl@hotmail.com>2007-06-27 21:57:07 (GMT)
commit2819d6383e519ac4f1d3f8797afa3007eedcbbbe (patch)
treee47f5b865c1daf957e9e07ea18d909a4ed029ad4
parent706d94ab1fe98caa7d93951bfbb7ec1138d8c1e5 (diff)
Keyb focus stuff
-rwxr-xr-xTamTam.py4
-rw-r--r--Util/KeyboardWindow.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/TamTam.py b/TamTam.py
index 52008cf..561b4b9 100755
--- a/TamTam.py
+++ b/TamTam.py
@@ -168,12 +168,12 @@ class TamTam(Activity):
elif key == 49:#39: S
#self.set_mode('synth')
self.keyboardWindow.hide_all()
- os.spawnlp(os.P_NOWAIT,'/usr/share/activities/TamTam.activity/cnee','/usr/share/activities/TamTam.activity/cnee', '--record', '--keyboard', '--mouse', '--stop-key', 'h', '--out-file', '/home/olpc/test.xnl')
+ l = os.spawnlp(os.P_NOWAIT,'/usr/share/activities/TamTam.activity/cnee','/usr/share/activities/TamTam.activity/cnee', '--record', '--keyboard', '--mouse', '--stop-key', 'h', '--out-file', '/home/olpc/test.xnl')
return
elif key == 10:#25: W
#self.set_mode('welcome')
self.keyboardWindow.show_all()
- os.spawnlp(os.P_NOWAIT,'/usr/share/activities/TamTam.activity/cnee','/usr/share/activities/TamTam.activity/cnee', '--replay', '--keyboard', '--mouse', '--file', '/home/olpc/test.xnl')
+ l = os.spawnlp(os.P_NOWAIT,'/usr/share/activities/TamTam.activity/cnee','/usr/share/activities/TamTam.activity/cnee', '--replay', '--keyboard', '--mouse', '--file', '/home/olpc/test.xnl')
return
elif key == 53: #X
self.destroy()
diff --git a/Util/KeyboardWindow.py b/Util/KeyboardWindow.py
index 558ecc6..eccef03 100644
--- a/Util/KeyboardWindow.py
+++ b/Util/KeyboardWindow.py
@@ -7,8 +7,8 @@ from ThemeWidgets import keyButton
class KeyboardWindow(gtk.Window):
def __init__(self, size = None, pos = 0):
- gtk.Window.__init__(self , gtk.WINDOW_TOPLEVEL)
- self.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG)
+ gtk.Window.__init__(self , gtk.WINDOW_POPUP)
+ #self.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG)
color = gtk.gdk.color_parse("#000000")
self.modify_bg(gtk.STATE_NORMAL, color)
self.set_decorated(False)
@@ -92,7 +92,7 @@ class KeyboardWindow(gtk.Window):
self.pos = _pos
pos = [0,0,0,0]
- pos[0] = (0, 0)
+ pos[0] = (0, 0)
pos[1] = (width - win_width, 0)
pos[2] = (0, height - win_height)
pos[3] = (width - win_width, height - win_height)