<html><body><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 class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" 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 size="2" face="Arial"> Le Vendredi 26 septembre 2014 17h48, Manuel <manuel@wenns-um-email-geht.de> a écrit :<br> </font> </div>  <br><br> <div class="y_msg_container">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 ymailto="mailto:gstreamer-devel@lists.freedesktop.org" 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><br></div>  </div> </div>  </div> </div></body></html>