Skip to content Skip to sidebar Skip to footer

Cannot Overlay Over Gstreamer Video With Gtk.overlay

I have a project with Python, PyGObject (Gtk 3), and GStreamer (0.11) I have video in my application, so I'm using a Gtk.Overlay widget so I can put other visual elements over the

Solution 1:

Answer derived from GNOME Bugzilla Bug 663589, Comments 1-3.

It is vital to set the valign and halign of any object added via "add_overlay".

Therefore, the revised code for declaring and adding the Gtk.Fixed object is as below.

fixed = Gtk.Fixed()

#The following two lines were added.fixed.set_halign(Gtk.Align.START)
fixed.set_valign(Gtk.Align.START)

overlay.add_overlay(fixed)
fixed.show()

Post a Comment for "Cannot Overlay Over Gstreamer Video With Gtk.overlay"