I trying to use the library gdk for scale down an image and apply it to a GdkImage.
This is the code
pixbuf = Gdk.pixbuf_new_from_file(fileName)
pixbuf = pixbuf.scale_simple(100, 100, Gdk.INTERP_BILINEAR)
The problem is that python can't find Gdk even if I use everything in lowercase
Error: pixbuf = Gdk.pixbuf_new_from_file(fileName) NameError: global name 'Gdk' is not defined
I don't know what should I do because I tried to import Gdk but nothing is changed