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