Reputation: 95
I want to insert an image to a GTKTextView. Should I use GtkImage or GdkPixbuf? there is no information about GdkPixbuf in Devhelp.
Upvotes: 0
Views: 364
Reputation: 620
Gtk.Image is the GUI widget which allows you to "see" the image. That is display it. GdkPixbuf is a library for loading the image for processing (scaling, viewing etc.)
When you want to insert a widget into GtkTextView, use Gtk.Image. The Python API for GdkPixbuf is here : https://lazka.github.io/pgi-docs/#GdkPixbuf-2.0 C Version : https://developer.gnome.org/gdk-pixbuf/
Upvotes: 1