EasyGui and Threads

I’ve just received a question from an easygui user that says, basically: “I’m trying to run easygui in independent threads, and it is not working. Can you tell me what I’m doing wrong? (code enclosed)”

Well, a short answer might be, “No. I’ve never tried to use easygui with threads”. An alternative answer might be: “Knowing Tkinter, I doubt it can be done”. But of course an even better answer would be: google tkinter and thread or threads or threading.

Which I did.

To my surprise, it is possible to use Tkinter with threads.

Here are a few of the URLs that I found, with the most promising first.

http://effbot.org/zone/tkinter-threads.htm

http://code.activestate.com/recipes/82965-threads-tkinter-and-asynchronous-io/

http://stackoverflow.com/questions/459083/how-do-you-run-your-own-code-alongside-tkinters-event-loop

http://stackoverflow.com/questions/1198262/tkinter-locks-python-when-icon-loaded-and-tk-mainloop-in-a-thread

http://groups.google.com/group/comp.lang.python/browse_thread/thread/1f8d0a962f3fba49

http://uucode.com/texts/pylongopgui/pyguiapp.html

So much for threads and Tkinter. How about threads and easygui?

Well, in theory, anything that works for Tkinter in general should work for easygui in particular. But the way things work in theory and the way things really work aren’t always the same. If anyone has any experience with threads and easygui, would you be willing to share it?

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s