Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTam.py
diff options
context:
space:
mode:
authoramartin <olpc@xo-05-28-21.localdomain>2007-07-18 10:50:56 (GMT)
committer amartin <olpc@xo-05-28-21.localdomain>2007-07-18 10:50:56 (GMT)
commit5fb0b8903997a65bd068b843994f58f2f24fa953 (patch)
treec956760c7d93b771dc85364090460c660827e9f3 /TamTam.py
parent24c227ae248d26862ce6dd868fefc129c2d38899 (diff)
Jamgit-update-index scripts/update-activity.sh git-update-index scripts/update-activity.sh
Diffstat (limited to 'TamTam.py')
-rwxr-xr-xTamTam.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/TamTam.py b/TamTam.py
index b8fdfa3..71bd2fe 100755
--- a/TamTam.py
+++ b/TamTam.py
@@ -13,6 +13,7 @@ from Util.Profiler import TP
from Util.InstrumentPanel import InstrumentPanel
from miniTamTam.miniTamTamMain import miniTamTamMain
+from Jam.Jam import Jam
from Edit.MainWindow import MainWindow
from Welcome import Welcome
from SynthLab.SynthLabWindow import SynthLabWindow
@@ -128,6 +129,10 @@ class TamTam(Activity):
self.predrawTimeout = False
+ if mode == 'jam':
+ if not (mode in self.modeList):
+ self.modeList[mode] = Jam(self, self.set_mode)
+ self.mode = mode
if mode == 'mini':
self.toolbox.hide()
if not (mode in self.modeList):
@@ -177,10 +182,13 @@ class TamTam(Activity):
csnd.connect(False)
def onKeyPress(self, widget, event):
- if Config.DEBUG > 5: print 'DEBUG: TamTam::onKeyPress in TamTam.py'
+ if Config.DEBUG > 1: print 'DEBUG: TamTam::onKeyPress in TamTam.py'
if event.state == gtk.gdk.MOD1_MASK:
key = event.hardware_keycode
- if key == 58: #M
+ if key == 100: # J
+ self.set_mode("jam")
+ return
+ elif key == 58: #M
self.set_mode('mini')
return
elif key == 49:#39: S