[pygtk] Pixmaps
PEYMAN ASKARI
paskari007 at yahoo.ca
Mon Feb 15 18:33:14 WST 2010
This is a general question regarding pixmaps and garbage collection
I had a piece of code which ran roughly as follows
def on_da_configure_event(...):
#pixmap stored in a list to become immutable
global da_pixmap
da_pixmap[0]=gtk.Pixmap(...)
essentially, everytime the da was reconfigured, the pixmap would be overwritten with a new pixmap. However, the old pixmap was never removed. Essentially the program would use more and more memory, until it crashed. Is this normal behavior?
Thanks
Peyman Askari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100215/6f2bda90/attachment.htm
More information about the pygtk
mailing list