To convert a standard Tkinter application into a window executable file, we generally use thePyintsaller package. It converts the application file into an executable application. However, we notice that when we open the executable (or. exe) file, it displays a command shell before opening the application window. We can hide or avoid the console by specifying pyinstaller -oneline filename -windowed command. exe file of the following program using PyInstaller. 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. It will create an app.exe file in the Dist folder. File Size : 2 Mb ChrisPC Free VPN Connection lets you create a VPN (virtual private network) connection to free servers from USA, U.K., Germany, Canada. When we run the executable file located in the Dist folder, it will display a window with a button and a Label widget. Exe file didn't display the command shell before opening the application window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |