PDA

View Full Version : PyGTK help



jimma
September 18th, 2007, 10:40 AM
Hi All

I'm relatively new to Ubuntu and Python. I want to write a graphical program using glade, pyGTK and python that displays to the user via the textview area what is happening to the program.

What I dont know how to do is to get the program to update, which is to get the latest data from a file to update the textview for the user. How do I do that?

Thanks

Wybiral
September 18th, 2007, 12:25 PM
I would spawn a thread that reads the file and inserts text into the TextView. Have you messed with using Pythons threads yet?

Which part are you curious about, starting the process or writing to the textview?

pmasiar
September 18th, 2007, 12:53 PM
If you are new into python, start with command-line text-only programs until you get firmer grip on language. Wiki in my sig will geive you links to trainig task for beginners. I recommend PythonChallenge.

jimma
September 18th, 2007, 01:31 PM
thanks I managed to solve the problem.