Thank to thoose who helped, butI found the solution somewhere else. Putting the applet in a windew helps to detect most problems, but thoose related to the specific panel environment are not shown. What I did was simply redirecting the stdout and stderr:
def redirect_out(self,file): stdo = open(file+".out", 'w',0) stde = open(file+".err",'w',0) sys.stderr = stde sys.stdout = stdo and that in a terminal tail -f <file>.out or .err the 0 buffer is needed to ensure that output is directly going to the file instead of only after it is closed. On Wed, 2004-03-03 at 18:43, Gustavo J. A. M. Carneiro wrote: > A Qua, 2004-03-03 às 16:22, Peter Tennekes escreveu: > > Hi I am working on a gnome panel applet and works fine, however problems > > and bugs, of course, arise from time to time. The question is how to > > intercept the output generated by errors and commands like print? > > tail -f ~/.xsession-errors > > > > > thanks in advance! > > > > > > _______________________________________________ > > pygtk mailing list [EMAIL PROTECTED] > > http://www.daa.com.au/mailman/listinfo/pygtk > > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/