Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mouth.py
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-07-17 21:48:51 (GMT)
committer flavio <fdanesse@gmail.com>2012-07-17 21:48:51 (GMT)
commit0edb2b73645352222a518ca98d7c8b6e7fc4c063 (patch)
tree165efcbf11b2e8648e055bc8270fcfd903d1c3a2 /mouth.py
parent5a23748f6291aa4ac9e1b895692d11afdf46b4e9 (diff)
pygi-convert
Diffstat (limited to 'mouth.py')
-rw-r--r--mouth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mouth.py b/mouth.py
index 4d88feb..631189f 100644
--- a/mouth.py
+++ b/mouth.py
@@ -23,16 +23,16 @@
# This code is a super-stripped down version of the waveform view from Measure
-import gtk
+from gi.repository import Gtk
import cairo
from struct import unpack
import numpy.core
-class Mouth(gtk.DrawingArea):
+class Mouth(Gtk.DrawingArea):
def __init__(self, audioSource, fill_color):
- gtk.DrawingArea.__init__(self)
+ GObject.GObject.__init__(self)
self.connect("expose_event", self.expose)
self.buffers = []
self.buffer_size = 256