From bb9606bb46dcc5669a3d27ec3529a74ee0199a39 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Mon, 22 Jul 2024 08:59:24 -0600 Subject: [PATCH] Mods --- cromulant/config.py | 1 - cromulant/window.py | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cromulant/config.py b/cromulant/config.py index d758ad3..0b9edee 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -51,7 +51,6 @@ class Config: input_caret_color: str = "rgb(18, 18, 18)" settings_json: Path countries_json: Path - filter_width: int = 150 filter_debouncer_delay: int = 200 default_population: int = 100 merge_goal: int = 10 diff --git a/cromulant/window.py b/cromulant/window.py index 33f0549..d7137fe 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -250,15 +250,14 @@ class Window: Window.mode.currentIndexChanged.connect(Game.update_mode) Window.filter = FilterLineEdit() - Window.filter.setFixedWidth(Config.filter_width) Window.filter.setPlaceholderText("Filter") Window.filter.mousePressEvent = lambda e: Window.to_top() Window.filter.keyReleaseEvent = lambda e: Filter.filter(e) - container.addWidget(btn_restart) - container.addWidget(Window.speed) - container.addWidget(Window.mode) - container.addWidget(Window.filter) + container.addWidget(btn_restart, 1) + container.addWidget(Window.speed, 1) + container.addWidget(Window.mode, 1) + container.addWidget(Window.filter, 1) root.setLayout(container) Window.root.addWidget(root)