开发者

GdkDrawingArea on GtkImage

开发者 https://www.devze.com 2023-01-05 05:51 出处:网络
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 stil

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消