Mods
This commit is contained in:
parent
f4c3a5ebfd
commit
63debc5e5f
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue