Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTam.py
diff options
context:
space:
mode:
authorolipet <olpc@localhost.localdomain>2007-01-11 10:25:02 (GMT)
committer olipet <olpc@localhost.localdomain>2007-01-11 10:25:02 (GMT)
commitc2d1279da7fa6444a2a72a0dee6eb846946f40cb (patch)
tree8d5782179984822190644f804e29879b2b2df6d9 /TamTam.py
parentd7fc4880ecd3d3ba7ebe603d8258f00a9a4dd773 (diff)
focusIn focusOut work well, Tamtam keeps his sounds!
Diffstat (limited to 'TamTam.py')
-rwxr-xr-xTamTam.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/TamTam.py b/TamTam.py
index 34b92bf..8282c9f 100755
--- a/TamTam.py
+++ b/TamTam.py
@@ -82,10 +82,10 @@ class TamTam(Activity):
home_path = env.get_profile_path() + Config.PREF_DIR
if not os.path.isdir(home_path):
os.mkdir(home_path)
- os.chmod(home_path, 777)
+ os.system('chmod 0777 ' + home_path + ' &')
for snd in ['mic1','mic2','mic3','mic4','lab1','lab2','lab3','lab4']:
shutil.copyfile(Config.SOUNDS_DIR + '/' + snd , home_path + '/' + snd)
- os.chmod(home_path + '/' + snd, 777)
+ os.system('chmod 0777 ' + home_path + '/' + snd + ' &')
color = gtk.gdk.color_parse('#FFFFFF')
self.modify_bg(gtk.STATE_NORMAL, color)
@@ -103,7 +103,9 @@ class TamTam(Activity):
def handleFocusIn(self, event, data=None):
csnd.initialize(True)
- csnd.setMasterVolume(100)
+ csnd.setMasterVolume(100)
+ self.tamtam.csnd.startTime()
+ self.tamtam.noteLooper.startTime()
def handleFocusOut(self, event, data=None):
if self.tamtam.synthLabWindowOpen(): return