<div dir="ltr">If your still stuck take a look here, <a href="http://www.digitaloctave.co.uk/pages/gtk3/tutorial15.htm">http://www.digitaloctave.co.uk/pages/gtk3/tutorial15.htm</a> might find it helpful.<br><br>the code is also available below along with a load of other gtk examples.<br><br><a href="http://bazaar.launchpad.net/~oly/python-examples/trunk/files/head:/python-examples/gtk3/tut15/">http://bazaar.launchpad.net/~oly/python-examples/trunk/files/head:/python-examples/gtk3/tut15/</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 8:16 PM, narcisse doudieu siewe <span dir="ltr"><<a href="mailto:wambenarcisse@yahoo.fr" target="_blank">wambenarcisse@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:14px"><div><span><br></span></div><div></div><div>do the following in the "draw" signal because in that step, the "window" surface has already be attributed to the widget.</div><div>use the following function in GDK </div><div><br></div><div>1) first step</div><div>windon = Gtk.get_window(widget)</div><div><br></div><div>2) second step</div><div>with the GdkWindow of the widget, create a cairo context "cairo_t" (to use cairo api and draw in it)<br></div><div><br></div><div>cairo_context_for_the_window = Gdk.cairo_create(window_of_the_widget)</div><div><br></div><div>with "cairo_context_for_window" use the cairo api (a binding for python exists) to draw your picture in it.</div><div>A movie is a list of pictures so each time you have to draw these picture in the window surface of your widget</div><div>this is why we use
cairo </div> <div><br><br></div><div style="display:block"> <div style="font-family:'times new roman','new york',times,serif;font-size:14px"> <div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:12px"> <div dir="ltr"> <font face="Arial"> Le Vendredi 26 septembre 2014 17h48, Manuel <<a href="mailto:manuel@wenns-um-email-geht.de" target="_blank">manuel@wenns-um-email-geht.de</a>> a écrit :<br> </font> </div><div><div class="h5"> <br><br> <div>Hi all,<br><br>in my program I use PyGObject/PyGI and GStreamer to show a video in my<br>GUI. The video is shown in a Gtk.DrawingArea and therefore I need to get<br>it's window-handle in the realize-signal-handler. On Linux I get that<br>handle using:<br><br>drawing_area.get_property('window').get_xid()<br>But how do I get the handle on Windows?<br><br>I searched on the internet but found only examples for PyGtk using<br>window.handle which
does not work using PyGI.<br><br>The GStreamer documentation provides an example which uses the<br>GDK_WINDOW_HWND macro to get the handle. This macro uses AFAIK<br>gdk_win32_drawable_get_handle. But how to do it in Python using PyGI?<br><br>Best regards<br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br><br></div> </div></div></div> </div> </div> </div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>