Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Mini/Fillin.py
diff options
context:
space:
mode:
authorKshitij Kumar <kshitijakumar@gmail.com>2013-01-13 06:36:13 (GMT)
committer Kshitij Kumar <kshitijakumar@gmail.com>2013-01-13 06:36:13 (GMT)
commit9b161ed20f0bf928b40479a0f01565ff16f3784e (patch)
treee5b451ee0f3a289cfd44fd7c2871ab8acb9380dd /Mini/Fillin.py
parent1dbdaaf0dc26c3a3853bed92cbbb94534e997648 (diff)
few more changes
Diffstat (limited to 'Mini/Fillin.py')
-rw-r--r--Mini/Fillin.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mini/Fillin.py b/Mini/Fillin.py
index c742830..9675054 100644
--- a/Mini/Fillin.py
+++ b/Mini/Fillin.py
@@ -1,7 +1,7 @@
import gi
-pygtk.require( '2.0' )
-import gtk
+pyGtk.require( '2.0' )
from gi.repository import GObject
+from gi.repository import Gtk
from RythmGenerator import *
from common.Util.CSoundClient import new_csound_client
@@ -32,7 +32,7 @@ class Fillin:
def setBeats( self, nbeats ):
if self.playBackTimeout != None:
- gobject.source_remove( self.playBackTimeout )
+ GObject.source_remove( self.playBackTimeout )
self.nbeats = nbeats
self.clear()
@@ -41,7 +41,7 @@ class Fillin:
def setTempo( self, tempo ):
self.tempo = tempo
if self.playBackTimeout != None:
- gobject.source_remove( self.playBackTimeout )
+ GObject.source_remove( self.playBackTimeout )
self.play()
def setReverb( self, reverb ):
@@ -52,12 +52,12 @@ class Fillin:
def play( self ):
if self.playBackTimeout == None:
- self.playbackTimeout = gobject.timeout_add( int(60000/self.tempo/8), self.handleClock )
+ self.playbackTimeout = GObject.timeout_add( int(60000/self.tempo/8), self.handleClock )
self.handleClock()
def stop( self ):
if self.playBackTimeout != None:
- gobject.source_remove( self.playBackTimeout )
+ GObject.source_remove( self.playBackTimeout )
self.clear()
def clear( self ):