MqttMonitor/MqttMonitorWidget.py

branch
eric7
changeset 153
4f4c2e272dcc
parent 143
51bc5bcc672a
child 154
b66cfd856e93
equal deleted inserted replaced
152:0a4969f23c46 153:4f4c2e272dcc
1537 """ 1537 """
1538 from .MqttUserPropertiesEditor import MqttUserPropertiesEditorDialog 1538 from .MqttUserPropertiesEditor import MqttUserPropertiesEditorDialog
1539 1539
1540 preferencesKey = "{0}Properties".format(propertiesType.capitalize()) 1540 preferencesKey = "{0}Properties".format(propertiesType.capitalize())
1541 properties = self.__plugin.getPreferences(preferencesKey) 1541 properties = self.__plugin.getPreferences(preferencesKey)
1542 dlg = MqttUserPropertiesEditorDialog(header, properties.get(key, []), self) 1542 dlg = MqttUserPropertiesEditorDialog(
1543 header, properties.get(key, []), parent=self
1544 )
1543 if dlg.exec() == QDialog.DialogCode.Accepted: 1545 if dlg.exec() == QDialog.DialogCode.Accepted:
1544 properties[key] = dlg.getProperties() 1546 properties[key] = dlg.getProperties()
1545 self.__plugin.setPreferences(preferencesKey, properties) 1547 self.__plugin.setPreferences(preferencesKey, properties)
1546 1548
1547 ####################################################################### 1549 #######################################################################

eric ide

mercurial