exe file didn't display the command shell before opening the application window. When we run the executable file located in the Dist folder, it will display a window with a button and a Label widget. It will create an app.exe file in the Dist folder. Now, open the terminal in the same location where you have saved app.py and run the following command − > pyinstaller –onefile app.py –windowed Label(win, text= "Hello World!", background= 'white', foreground='purple1').pack()īutton(win, text= "Click Me", background= "white", foreground= "black", font= ('Helvetica 13 bold'), command= display_text).pack(pady= 50) Bylelikle Python programn amadan uygulamamz Windows ierisinde al kurulum: Kod: pip install pyinstaller. exe file of the following program using PyInstaller. We can hide or avoid the console by specifying pyinstaller -oneline filename -windowed command. exe) file, it displays a command shell before opening the application window. However, we notice that when we open the executable (or.
It converts the application file into an executable application. To convert a standard Tkinter application into a window executable file, we generally use thePyintsaller package.