@raphael_tillman
To hide the Windows console when using a Python script with Tkinter, you need to use PyInstaller to create a standalone executable. Here's how you can do it:
1
|
pip install pyinstaller |
1 2 3 4 5 6 7 |
import tkinter as tk root = tk.Tk() label = tk.Label(root, text="Hello, Tkinter!") label.pack() root.mainloop() |
1
|
pyinstaller --onefile --noconsole my_script.py |
By following these steps, the Windows console will be hidden when you run the executable created by PyInstaller.