I have a program with Tkinter window and I want to set an icon for the window. I coded this:okno.iconbitmap(os.path.dirname(os.path.abspath(__file__))+\"/icon.png\")>
okno.iconbitmap(os.path.dirname(os.path.abspath(__file__))+\"/icon.png\")>
app.iconbitmap(r'C:\Users\User\PycharmProjects\HelloWorld\my.ico')
pyinstaller --onefile -w -F -i "my.ico" my.py