"Alan Gauld" <alan.ga...@btinternet.com> wrote
user input topic and on checking the web site it said Easygui was compatible with Python v3. However after downloading and installing I get a "No module named StringIO" error under Python v3.

OK, Not much digging required.
StringIO has moved to io.StringIO in v3
So changing the version check code to:

if runningPython3:
  from tkinter import *
  import tkinter.filedialog as tk_FileDialog
  from io import StringIO
else:
  from Tkinter import *
  import tkFileDialog as tk_FileDialog
  import StringIO

and deleting the original import StringIO line seems to work...

If someone else could carry out a more exhaustive test than my basic EnterBox then I'll notify the easygui team.

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to