Answers for "python exe hide console"

5

python hide console

# pip install pywin32 -> This will install the libs that are required
import win32gui, win32con

hide = win32gui.GetForegroundWindow()
win32gui.ShowWindow(hide , win32con.SW_HIDE)
Posted by: Guest on April-02-2020
1

hide console in python build

Simply save it with a .pyw extension. This will prevent the console window from opening.
Posted by: Guest on June-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language