[pygtk] natively drawing to a window/drawingarea created by pygtk

Peter Krenesky Peter at osuosl.org
Wed Feb 21 05:03:49 WST 2007


Hi all,

    I'm using pygtk to create a frontend for a cpp media player engine (helix).  The player engine takes a XID (or windows equivilant) and attaches to the window.  
The engine then draws directly to the window.  When i use a window created natively by my app it works correctly.  when using
a window created by pygtk the video plays fine for a few seconds, pauses for a few seconds, then repeats.

gtk.main_iteration() is still being called while video is playing, buttons still respond to clicks.  
audio playback does not pause so it doesn't appear to be an overworked cpu.
the engine calls XInitThreads() before the windows are created

any ideas?

-- 
Peter Krenesky
Analyst Programmer
Open Source Lab @ OSU
email: peter at osuosl.org
office: 541-737-9572


More information about the pygtk mailing list