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 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -