Revize bde53a5c
Přidáno uživatelem Martin Forejt před téměř 4 roky(ů)
aswi2021vochomurka/view/settings.py | ||
---|---|---|
13 | 13 |
DEFAULT_TIMEOUT = 60 |
14 | 14 | |
15 | 15 | |
16 |
def get_settings(): |
|
17 |
settings = QSettings('settings.ini', QSettings.IniFormat) |
|
18 |
return settings |
|
19 | ||
20 | ||
16 | 21 |
class SettingsDialog(QDialog): |
17 | 22 |
topics = DEFAULT_TOPICS |
18 | 23 | |
19 | 24 |
def __init__(self): |
20 | 25 |
super(SettingsDialog, self).__init__(None, |
21 | 26 |
QtCore.Qt.WindowCloseButtonHint | QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint) |
22 |
self.settings = QSettings("Vochomurka", "MQTTClient")
|
|
27 |
self.settings = get_settings()
|
|
23 | 28 |
self.setWindowTitle("Settings") |
24 | 29 |
self.setMinimumSize(QSize(600, 500)) |
25 | 30 |
Také k dispozici: Unified diff
Re: 8996 - config file format and location