diff options
author | amartin <olpc@xo-00-CE-12.localdomain> | 2007-11-02 21:56:40 (GMT) |
---|---|---|
committer | amartin <olpc@xo-00-CE-12.localdomain> | 2007-11-02 21:56:40 (GMT) |
commit | b0839a170b241e6498b91c792535f3b5a0ee76b5 (patch) | |
tree | e4210c0fd1dcbb730da408baa86f9949e1046b87 /TamTamJam.activity/Jam/JamMain.py | |
parent | b7ef785eed4fa8f394c5d28bb5aa56b066c38e49 (diff) |
network
Diffstat (limited to 'TamTamJam.activity/Jam/JamMain.py')
-rw-r--r-- | TamTamJam.activity/Jam/JamMain.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/TamTamJam.activity/Jam/JamMain.py b/TamTamJam.activity/Jam/JamMain.py index 05a67be..a837394 100644 --- a/TamTamJam.activity/Jam/JamMain.py +++ b/TamTamJam.activity/Jam/JamMain.py @@ -759,8 +759,8 @@ class JamMain(gtk.EventBox): def getTempo( self ): return self.tempo - def setTempo( self, tempo ): - self.jamToolbar.setTempo( tempo ) + def setTempo( self, tempo, quiet = False ): + self.jamToolbar.setTempo( tempo, quiet ) def _setTempo( self, tempo, propagate = True ): if self.network.isHost() or self.network.isOffline(): @@ -1086,7 +1086,6 @@ class JamMain(gtk.EventBox): #-- Handlers ---------------------------------------------- def networkStatusWatcher( self, mode ): - print "Network Watcher mode:", mode if mode == Net.MD_OFFLINE: if self.syncTimeout: gobject.source_remove( self.syncTimeout ) @@ -1111,7 +1110,7 @@ class JamMain(gtk.EventBox): def processHT_TEMPO_UPDATE( self, sock, message, data ): self.unpacker.reset(data) val = self.unpacker.unpack_int() - self.setTempo( val ) + self.setTempo( val, True ) self.sendSyncQuery() def processPR_SYNC_QUERY( self, sock, message, data ): @@ -1173,7 +1172,6 @@ class JamMain(gtk.EventBox): return self.ticksPerSecond*(delta % self.beatDuration) def updateSync( self ): - print "udateSync" if self.network.isOffline(): return False elif self.network.isWaiting(): |