Console hide

This commit is contained in:
BarsTiger
2022-01-31 17:59:36 +02:00
parent 5138f10417
commit cb0450b70e
12 changed files with 52 additions and 27 deletions

View File

@@ -2,10 +2,14 @@ import sys
import math
import webbrowser
import modules.vars as horsy_vars
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5 import QtWidgets
import ctypes
import modules.gui as gui
# Hide console window (does not work on custom terminals like Windows Terminal)
ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 0)
# Initialize GUI
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)