gdkpixbuf Questions
3
Solved
I know that Gdk-Pixbuf supports png and jpg, but I cannot find an exact list of all the completely (or partially) supported image formats anywhere on the internet. It is necessary for my current pr...
Mendicant asked 9/10, 2011 at 15:50
1
In my application I have a GtkImage that must show the processed image from a choosed file. So, in the handlers section I have:
import numpy as np
from PIL import Image , ImageDraw
from gi.reposit...
2
Solved
I feel like this should be pretty simple, but I guess I am missing something.
So I want to set the icon of a window with one of the stock images. I have tried:
windowIcon = gtk.image_new_form_sto...
3
Solved
I am having difficulty loading a file or displaying a colour in one of the columns of a Gtk TreeView (Python binding of GTK3). An example taken from QGIS shows a icon in the first row and a blue ci...
2
Environment: Python3
Libraries:
from gi.repository import Gtk, Gdk
import cairo
I want to create a 'pixbuf from file' but the method does not longer exist in Gdk3.
pb = Gdk.pixbuf_new_from_fil...
2
How can I convert PIL Image in pixbuf?. I tried to change many examples but no solution
import array
from gi.repository import GdkPixbuf
def image2pixbuf(self,im):
arr = array.array('B', im.tost...
Bowman asked 26/4, 2012 at 21:56
1
Solved
I am trying to use GdkPixbuf.Pixbuf.new_from_data() as shown in gtk 2.x and I am passing 7 arguments. But it gives me an error that I need to pass 9 arguments.
What I am doing now was working for...
Mycobacterium asked 23/4, 2012 at 16:28
1
© 2022 - 2024 — McMap. All rights reserved.