Skip to content

Commit fbb9ac4

Browse files
committed
Add option to set the title of the dialog window
1 parent 96279c9 commit fbb9ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qtapputils/widgets/configdialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ class ConfDialog(QDialog):
8282

8383
def __init__(self, main, icon: QIcon = None, resizable: bool = True,
8484
min_height: int = None, sup_message: str = None,
85-
btn_labels: dict = None):
85+
btn_labels: dict = None, win_title: str = 'Preferences'):
8686
super().__init__(main)
8787
self.main = main
8888

89-
self.setWindowTitle('Preferences')
89+
self.setWindowTitle(win_title)
9090
if icon is not None:
9191
self.setWindowIcon(icon)
9292
self.setWindowFlags(

0 commit comments

Comments
 (0)