[pygtk] gtk.DrawingArea handle id on win32 bug
Dieter Verfaillie
dieterv at optionexplicit.be
Wed Jan 12 03:21:55 WST 2011
On 28/12/2010 00:42, s.lagui at free.fr wrote:
> hi
>
> i m trying to use my software in windows...
>
> normally i embed a video in a Drawingarea with his xid on linux or handle on
> windows But on windows this id is the same than the root window..
>
> the drawingarea is not listed as a toplevel window neither... so the video is
> printed in all the gui...
>
> on linux with xid i have 2 differents id for the main window and the drawingArea
> normally
>
> any idears ?
I don't know what version of GTK+ you're using on both platforms so
it's a shot in the dark, but are you using GTK+ 2.18 or newer on
Windows? If so, you'll probably want to read
http://library.gnome.org/devel/gtk/2.18/gtk-migrating-ClientSideWindows.html.
Also, I've attached a very minimal "does nothing useful" example that
shows how to get a native window for a drawingarea. Be careful though,
you can only call ensure_native() when the widget has been realized...
hth,
Dieter
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: drawingarea.py
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110111/455c89df/attachment.ksh>
More information about the pygtk
mailing list