pygtk - How to draw any GTK widget on top of Cairo surface -
i save looks of gtk window, , buttons , other widgets contains png or pdf file. cairo supports drawing on such surfaces. somehow ask gtk widget draw on cairo surface? code sample appreciated, since newcomer both gtk , cairo. python language of choice.
in c, can put buttons , widgets in gtkoffscreenwindow
using gtk_widget_reparent()
, use gtk_offscreen_window_get_pixbuf()
render onto gdkpixbuf
, can save file. sorry don't have python code, don't think offscreen window available in pygtk yet.
Comments
Post a Comment