From 63debc5e5fc3754eb5e4f579e5c20c2ce8154723 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sat, 20 Jul 2024 01:07:27 -0600 Subject: [PATCH] Mods --- cromulant/config.py | 1 + cromulant/window.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cromulant/config.py b/cromulant/config.py index 392f56b..ce79bf6 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -7,6 +7,7 @@ import appdirs # type: ignore class Config: title: str = "Cromulant" + program: str = "cromulant" width: int = 820 height: int = 900 max_ants: int = 100 diff --git a/cromulant/window.py b/cromulant/window.py index 85b2f69..4da94e2 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -63,9 +63,12 @@ class Window: @staticmethod def make() -> None: Window.app = QApplication([]) + Window.app.setApplicationName(Config.program) + Window.window = QMainWindow() Window.window.setWindowTitle(Config.title) Window.window.resize(Config.width, Config.height) + central_widget = QWidget() Window.root = QVBoxLayout() central_widget.setLayout(Window.root)