Hi,
i use a Gtk.Image, with pixbuf set from a file, and i would like to know
the new size of the widget when resized, to adjust the pixmap to this
size. But the only thing i can get is the size of the displayed pixmap,
i need the size of the Gtk.Image containing it (gray borders that appear
on res
Hi,
when i use gtk.gdk.pixbuf_new_from_file_at_size() with a file in SVG
format, it seem sthat gc.collect() do not see it, so cannot remove it,
and causes memory leak, but if i use a PNG file it works. Is it a bug ?
Is there a workaround ?
Thank you.
Best regards.
Camille.
= ['1.png', '2.png', '3.png']
self.pixbuf = gtk.gdk.pixbuf_new_from_file(
images[random.randint(0, 2)])
pixmap, mask = self.pixbuf.render_pixmap_and_mask()
self.pixmap.set(pixmap, mask)
Thank you.
Regar
Hi,
i'd like to get the xid of a gdk.DrawingArea object like i do with
gdk_x11_drawable_get_xid in C. The only pygtk function i found wich
looks like this is gtk.gdk.window_lookup but i don't understand how to
use it after many tries. Can anybody help me ?
Thanks.
--
mammique <[EM
w to do
this. I understood that gtk.gdk.Pixmaps are faster than gtk.gdk.Pixbufs
because they are server side objetcs, but i don't know how convert jpeg
images into gtk.gdk.Pixmap and how to resize it.
Every suggestion is welcome, thanks.
--
mammique <[EMAIL PROTECTED]>
signature.asc
Descri
hi,
i'd really like to use some functions listed in PyGTK Docs
(http://www.gnome.org/~james/pygtk-docs/) to a gdkwindow:
- "move" to set the window postion
- "set_decorated" to hide the title bar.
but when i call them the interpreter says "attribute error" because they
aren't in gtk.py, so does