i have a simple write to file code, (one.py)
one.py
from time import sleep
f = open("test.txt","w") #opens file with name of "test.txt"
sleep(1)
f.write("I am a test file.")
sleep (2)
f.write("Maybe someday, he will promote me to a real file.")
sleep (1)
f.write("Man, I long to be a real file")
sleep (1)
f.write("and hang out with all my new real file friends.")
f.close()
subpro.py
import subprocess
def oneCall():
subprocess.call(['python','one.py'])
if __name__ == '__main__':
print "Writing Data"
oneCall()
when i run subpro.py, the indicator will show like it hang, is there any way i can change it in to progress bar? so that the user will know that there are actually progress in the background?