From 0edb2b73645352222a518ca98d7c8b6e7fc4c063 Mon Sep 17 00:00:00 2001 From: flavio Date: Tue, 17 Jul 2012 21:48:51 +0000 Subject: pygi-convert --- (limited to 'mouth.py') 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 -- cgit v0.9.1