How 开发者_如何学Pythoncan I impose GdkDrawingArea
on the GtkImage
for painting on an image, for example?
GtkDrawingArea
and GtkImage
are different classes, so you must choose one of them. You can still draw on GtkImage
(and on any other widget), by connecting to expose_event
signal.
You could also use plain GtkDrawingArea
- displaying image is a matter of calling gdk_draw_pixbuf
function.
精彩评论