diff options
author | Kshitij Kumar <kshitijakumar@gmail.com> | 2013-01-13 06:36:13 (GMT) |
---|---|---|
committer | Kshitij Kumar <kshitijakumar@gmail.com> | 2013-01-13 06:36:13 (GMT) |
commit | 9b161ed20f0bf928b40479a0f01565ff16f3784e (patch) | |
tree | e5b451ee0f3a289cfd44fd7c2871ab8acb9380dd /Mini/MiniSequencer.py | |
parent | 1dbdaaf0dc26c3a3853bed92cbbb94534e997648 (diff) |
few more changes
Diffstat (limited to 'Mini/MiniSequencer.py')
-rw-r--r-- | Mini/MiniSequencer.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mini/MiniSequencer.py b/Mini/MiniSequencer.py index 3de3405..a061fb6 100644 --- a/Mini/MiniSequencer.py +++ b/Mini/MiniSequencer.py @@ -1,5 +1,5 @@ import gi -pygtk.require( '2.0' ) +pyGtk.require( '2.0' ) from gi.repository import Gtk from gi.repository import GObject import time @@ -31,7 +31,7 @@ class MiniSequencer: def setTempo( self, tempo ): self.tempo = tempo - gobject.source_remove( self.playBackTimeout ) + GObject.source_remove( self.playBackTimeout ) self.playState = 0 def handleRecordButton( self, widget, data=None ): @@ -63,13 +63,13 @@ class MiniSequencer: def startPlayback( self ): if not self.playState: - self.playbackTimeout = gobject.timeout_add( int(60000/self.tempo/12), self.handleClock ) + self.playbackTimeout = GObject.timeout_add( int(60000/self.tempo/12), self.handleClock ) self.handleClock() self.playState = 1 def stopPlayback( self ): if self.playbackTimeout != None: - gobject.source_remove( self.playbackTimeout ) + GObject.source_remove( self.playbackTimeout ) self.playbackTimeout = None self.playState = 0 |