From: Einar Jørgen Haraldseid Date: Sun, 10 May 2015 15:24:11 +0000 (+0200) Subject: Use GTK3 GObject instead of GTK2 gobject X-Git-Url: https://git.slaskete.net/python-gstreamer-examples/commitdiff_plain/b54b187e73a58eb84029383355ae66f95d17d75a?ds=inline;hp=c5383e2b27c8b6da301037eaba28839182331414 Use GTK3 GObject instead of GTK2 gobject --- diff --git a/example1.py b/example1.py index c2e6e6e..3d944ba 100755 --- a/example1.py +++ b/example1.py @@ -7,8 +7,7 @@ # Info on porting python scripts to Gstreamer 1.0 can be found here: # https://wiki.ubuntu.com/Novacut/GStreamer1.0 -from gi.repository import Gst -import gobject +from gi.repository import Gst, GObject class Main: def __init__(self): @@ -32,5 +31,5 @@ class Main: # Create the pipelie and enter main loop, quit with ctrl+c start = Main() -mainloop = gobject.MainLoop() +mainloop = GObject.MainLoop() mainloop.run()