[pygtk] Paint widget to pixbuf
Gian Mario Tagliaretti
gianmt at gnome.org
Sat Oct 6 16:41:55 WST 2007
2007/10/6, Thomas Dybdahl Ahle <lobais a gmail.com>:
> Hi, I've been looking for a way to paint a Button on a Pixmap.
> In c-gtk I've seen it done like this:
> gdk_draw_drawable (window, widget->style->black_gc,
> GTK_PROGRESS (pbar)->offscreen_pixmap,
> 0,0,0,0,-1,-1);
> But I haven't been able to find the offscreen_pixmap attribute on any
> widgets, Buttons nor Progressbars.
offscreen_pixmap is a private field of the GtkProgress struct, it
shouldn't be accessed directly.
> Can any of you help me on how this is done in pygtk?
I don't think is possible at the moment.
It should be planned for 2.14 according to this bug:
http://bugzilla.gnome.org/show_bug.cgi?id=318807
cheers
--
Gian Mario Tagliaretti
More information about the pygtk
mailing list