[pygtk] Gtk.Image unused widget space size

2005-07-20 Thread mammique
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

[pygtk] gc.collect() miss pixbuf set form SVG

2005-04-19 Thread mammique
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.

[pygtk] out of memory

2004-05-10 Thread mammique
= ['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

[pygtk] gtk.DrawingArea xid

2003-08-14 Thread mammique
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

[pygtk] gtk.gdk.Pixmap, jpeg, xv & co.

2003-08-03 Thread mammique
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

[pygtk] move gtkwindow & set_decorated

2002-07-23 Thread mammique
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