tkinter how to create a .exe file with python code / notes

 

Maybe you are out there and you are having trouble with tkinter, I was in your shoes at one time in my life, and I made some notes of the code that worked, and what didnt, hopefully those notes help you, and myself in the future, because I forget everything, and you might need to learn it, cheers to the internet!

 

my system is windows 10, standard dell pc desktop from 2019, whatever that is...

 

 

 begin notes***

 

 i am not including the 4 times i failed to create or created something that didnt work because, ...it failed...

here are my successful attempts.

 

The following code includes a desktop icon image and a console appears when using the file:

 

pyinstaller --icon=iconFileName.ico programName.py

 

The following code has no icon, and no console:

 

pyinstaller programName.py --noconsole

Comments

Popular Posts