This commit is contained in:
Auric Vente 2024-07-20 01:07:27 -06:00
parent f4c3a5ebfd
commit 63debc5e5f
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import appdirs # type: ignore
class Config: class Config:
title: str = "Cromulant" title: str = "Cromulant"
program: str = "cromulant"
width: int = 820 width: int = 820
height: int = 900 height: int = 900
max_ants: int = 100 max_ants: int = 100

View File

@ -63,9 +63,12 @@ class Window:
@staticmethod @staticmethod
def make() -> None: def make() -> None:
Window.app = QApplication([]) Window.app = QApplication([])
Window.app.setApplicationName(Config.program)
Window.window = QMainWindow() Window.window = QMainWindow()
Window.window.setWindowTitle(Config.title) Window.window.setWindowTitle(Config.title)
Window.window.resize(Config.width, Config.height) Window.window.resize(Config.width, Config.height)
central_widget = QWidget() central_widget = QWidget()
Window.root = QVBoxLayout() Window.root = QVBoxLayout()
central_widget.setLayout(Window.root) central_widget.setLayout(Window.root)