From 18b842c429f1048a8034ea87c6393b18ed86b508 Mon Sep 17 00:00:00 2001 From: CPD Date: Tue, 4 Mar 2025 17:52:48 +0100 Subject: [PATCH] Add window title param --- app/ui/widgets/device_select.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui/widgets/device_select.py b/app/ui/widgets/device_select.py index ef5c93d..bc9c165 100644 --- a/app/ui/widgets/device_select.py +++ b/app/ui/widgets/device_select.py @@ -3,9 +3,9 @@ from typing import Callable # QT6 non-window that presents a list of devices of which one can be connected class ListChoice(QDialog): - def __init__(self, items: dict[str, list[str]], parent=None): + def __init__(self, items: dict[str, list[str]], parent=None, window_title="Select Device"): super().__init__(parent) - self.setWindowTitle("Select Device") + self.setWindowTitle(window_title) self.setLayout(QVBoxLayout()) self.layout().addWidget(QLabel("Select a device to connect to:")) self.device_list = QListWidget()