Commander_Bob
June 11th, 2009, 05:07 AM
I am writing a program in python that copies files to my mp3 player. I need a way for it to keep the GUI updated while it copies the song. The solution I came up with was to use threads and use a while loop to wait for the thread to finish. This seems like a terrible way to do it as it polls to see if the thread is done, wasting CPU time.
Is there a better way to do this?
My code is attached. This is my first program with GTK/python so if any thing else is poorly coded please tell me.
Thanks,
Justin Rajewski
Is there a better way to do this?
My code is attached. This is my first program with GTK/python so if any thing else is poorly coded please tell me.
Thanks,
Justin Rajewski