+ 2
Exe of tkinter is not waiting for user input
Hello I have basic GUI using tkinter... this UI has 2 entry control , one button and one label.. user need to enter details in to 2 entry control and click on button. this button click set label text as entered values by user... this works perfectly fine.. I then created script and save it as .py file... called it from command prompt and it worked fine.. post this, I used pyinstaller.exe from python script folder to convert .py file to executable... successfully got exe also but on double click of exe, it just openes and closes and doesn't wait for me to provide details on entry control... any thoughts on this would be great help.
2 Respuestas
+ 1
Just a guess, but are you targetting the tkinter module with pyinstaller?
https://stackoverflow.com/questions/44528665/problems-with-pyinstaller-with-tkinter-app-on-JUMP_LINK__&&__python__&&__JUMP_LINK-3-5
------------------------------------------------------------
"I was having a similar issues with tkinter and python 3.5 after looking over https://pythonhosted.org/PyInstaller/hooks.html#understanding-pyinstaller-hooks
add the option of --hidden-import tkinter
pyinstaller --onefile --hidden-import tkinter hello.py"
------------------------------------------------------------
+ 1
thanks sam - Check My Codes .. I got some hint with this...
earlier I was doing as below :
pyinstaller.exe myscript.py
need to package all in one file with additional argument for pyinstaller as below and it worked:
pyinstaller.exe --onefile --windowed myscript.py