Re: process and spinning slash

2005-10-31 Thread benz
I have rewrited my code as follow, but it still not working. import os, sys pid = os.fork() if pid == 0: os.execvp("du",("du","-shc","/usr/share")) else: while 1: try: os.kill(pid,0) sys.stdout.write('running') sys.stdout.flush() sys.stdout.write('\b\b\b\b\b\b\b'

process and spinning slash

2005-10-30 Thread benz
I am trying to fork and exec a child by python. Additionally, I am attempting to have a spinning slash while the child is running. My code is as below: import sys, os, time def spin(delay): pattern=['-','\\','|','/','-','\\','|'] while 1: for i in pattern: sys.stdout.write(i + "

Re: Graphical debugger/code explorer

2005-10-03 Thread benz
>>>PYTHON_IDE={ 'spe' : 'http://spe.pycs.net/', 'eric3' : 'http://www.die-offenbachs.de/detlev/eric3.html', 'drpython' : 'http://drpython.sourceforge.net/'} :) -- http://mail.python.org/mailman/listinfo/python-list