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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -