Hide a console window in Python

Questions about programming languages and debugging
Post Reply
User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

Hide a console window in Python

Post by maboroshi »

here is source to hide a windows console window in Python (uses winapi)

Code: Select all

import win32console
import win32gui

win = win32console.GetConsoleWindow()
win32gui.ShowWindow(win, 0)
Maboroshi

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Nice! =o

Same code that you used for your app yesterday? ^^
"The best place to hide a tree, is in a forest"

Post Reply