This commit is contained in:
ysc3839 2017-02-04 21:58:58 +08:00
parent a08114b1b0
commit fcd0ec5996
2 changed files with 8 additions and 2 deletions

View file

@ -680,6 +680,9 @@ def hideConsole():
def showConsole():
ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 1)
def hasConsole():
return ctypes.windll.kernel32.GetConsoleWindow() != 0
if __name__ == "__main__":
import time