Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mouth.py
diff options
context:
space:
mode:
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