I make gui game with python and when I convert it - using pyinstaller package - from python script to descktop app isn't work I click double click and nothing happen how can I slove this problem ?
This code also rise the same problem:
from tkinter import *
root = Tk ()
root.config (bg="black ")
#=========================
Label (root , text = "Hi" ,bg= "blue" , fg ="green")
#=========================
root.mainloop()
when I convert this code the same problem happen.
CodePudding user response:
This worked fine for me: steps I took
OS: Windows | Terminal: Git
mkdir folder
cd folder
python -m venv venv
venv\Scripts\activate
python -m pip install --upgrade pip pyinstaller
- open new file
app.py
and paste your example into file pyinstaller -F --noconsole app.py
cd dist
app.exe
<--- opens the window and all works fine