I have written a simple python tkinter programme to try PyInstaller on Mac 
OSX, but if I double click the executable created by PyInstaller the window 
closes immediately before I am able to see the GUI. After a bit of testing 
it is clear that the problem is caused by the tkinter import statement. 
Here is the full code for reference:

#TestGUI.pyfrom tkinter import *
root = Tk()
window = Frame(root)
window.grid()
root.title("pyInstaller Test")
label = Label(window, text="Hello World").grid(row=1, column=1)
root.mainloop()


I tried with cx_freeze also to see if it was a pyinstaller problem and had 
the same problem, but this time it gave me an error:

FileNotFoundError: [Errno 2] No such file or directory: 
'/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl


Does anyone know what I need to do to fix this problem so that my 
pyinstaller executables work?


Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to