Skip to content

Are there any gtk4 plugins in the planning? #6049

Answered by radarhere
aprsa asked this question in Q&A
Discussion options

You must be logged in to vote

There is no active plan for such functionality, no.

Searching, I found https://gitlab.gnome.org/GNOME/pygobject/-/issues/225

from PIL import Image
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GdkPixbuf, GLib
topgtkwindow = Gtk.Window( title = "TEST" )
topgtkwindow.connect( "destroy", Gtk.main_quit )
gtkimage = Gtk.Image()
topgtkwindow.add( gtkimage )
topgtkwindow.show_all()
pillowimage = Image.new( "RGB", (800,600) )
glibbytes = GLib.Bytes.new( pillowimage.tobytes() )
gdkpixbuf = GdkPixbuf.Pixbuf.new_from_data( glibbytes.get_data(), GdkPixbuf.Colorspace.RGB, False, 8, pillowimage.width, pillowimage.height, len( pillowimage.getbands() )*pillowimage.width, None, N…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aprsa
Comment options

Answer selected by radarhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants