Changes

Jump to navigation Jump to search
Line 365: Line 365:  
thumb_surface.write_to_png(png_path_or_filelike_object)
 
thumb_surface.write_to_png(png_path_or_filelike_object)
 
</pre>
 
</pre>
 +
 +
===Creating a video widget===
 +
 +
Haven't gotten this working yet, but some necessary changes include:
 +
 +
Instead of
 +
window.xid
 +
use
 +
get_property('window').get_xid()
 +
 +
Instead of
 +
unset_flags(gtk.DOUBLE_BUFFERED)
 +
set_flags(gtk.APP_PAINTABLE)
 +
use
 +
set_double_buffered(False)
 +
set_app_paintable(True)
    
== Resources ==
 
== Resources ==

Navigation menu