Fix #807.
This commit is contained in:
parent
a08114b1b0
commit
fcd0ec5996
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue