[pygtk] running gtk from crontab

2005-12-07 Thread Loris Caren
Does anybody know if it is possible to run (py)gtk scripts that don't 
need a GUI from crontab or from a non X11 terminal? This might seem a 
daft requirement, but I'm using the pygtk image processing 
capabilities to do some batch processing for images that I don't need 
to display.


pgpFtNiZelNDY.pgp
Description: PGP signature
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Re: Pixbuf memory leak?

2005-11-16 Thread Loris Caren
On Tuesday 15 November 2005 21:06, you wrote:
 I'm doing a large number of calls to
 p = gtk.gdk.pixbuf_new_from_file(f)
 ...
 del p
 and am finding that the process consumes more and more memory as it
 goes on.  Should I expect the del to free up the memory used by the
 loaded image, or is there some kind of 'close' call I need to be
 invoking first?
Think I've found the answer to this one in the archives. Various other 
people have reported a similar bug, but 
http://article.gmane.org/gmane.comp.gnome.gtk+.python/2315/match=pixbuf
suggests it's an issue with the garbage collector. Adding an explicit 
gc.collect() after my del stops my memory usage wandering off the 
scale.  This looks like a generic issue for anyone manipulating lots 
of large objects, and an easy trap for those that thought that python 
'just did' memory allocation and one never need bother about it.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Pixbuf memory leak?

2005-11-15 Thread Loris Caren
I'm doing a large number of calls to
p = gtk.gdk.pixbuf_new_from_file(f)
...
del p
and am finding that the process consumes more and more memory as it 
goes on.  Should I expect the del to free up the memory used by the 
loaded image, or is there some kind of 'close' call I need to be 
invoking first?
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Whole App Cursor Setting

2005-10-28 Thread Loris Caren
I'm trying to put up a watch cursor while my app is busy. I've found 
how to do it for one widget, but I really want to freeze up the whole 
GUI.  http://www.daa.com.au/pipermail/pygtk/2000-October/000435.html
looks just what I'm after. However, it seems to have suffered from 
software ageing and half the calls don't seem to be present (in 
2.6.2). Can anybody offer a current equivalent of his fragment?
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/