Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/miniTamTam
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-05-11 07:31:41 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-05-11 07:31:41 (GMT)
commitc48fb56a36d3c0e59b43c4c9c8d370837388f8e3 (patch)
tree93413d83df2db3fa8b39f3d22c27682c039eee99 /miniTamTam
parentedcfad0e4c5e22447d436c887d779eea43f351df (diff)
reset drum loop on '/*' key (just below the enter key)
Diffstat (limited to 'miniTamTam')
-rw-r--r--miniTamTam/miniTamTamMain.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/miniTamTam/miniTamTamMain.py b/miniTamTam/miniTamTamMain.py
index 55c3e0e..a90aa69 100644
--- a/miniTamTam/miniTamTamMain.py
+++ b/miniTamTam/miniTamTamMain.py
@@ -400,6 +400,13 @@ class miniTamTamMain(SubActivity):
secs_per_tick)
def onKeyPress(self, widget, event):
+ if event.hardware_keycode == 219: #'/*' button to reset drum loop
+ if self.playStopButton.get_active() == True:
+ self.handlePlayButton(self.playStopButton)
+ self.playStopButton.set_active(False)
+ self.handlePlayButton(self.playStopButton)
+ self.playStopButton.set_active(True)
+
if event.hardware_keycode == 65: #what key is this? what feature is this?
if self.playStopButton.get_active():
self.playStopButton.set_active(False)