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 foldercd folderpython -m venv venvvenv\Scripts\activatepython -m pip install --upgrade pip pyinstaller- open new file
app.pyand paste your example into file pyinstaller -F --noconsole app.pycd distapp.exe<--- opens the window and all works fine
