MqttMonitor/ConfigurationPage/MqttPage.py

branch
eric7
changeset 145
3f8e91170c37
parent 139
b7ca79939cc7
child 154
b66cfd856e93
equal deleted inserted replaced
144:48501744f7d0 145:3f8e91170c37
23 def __init__(self, plugin): 23 def __init__(self, plugin):
24 """ 24 """
25 Constructor 25 Constructor
26 26
27 @param plugin reference to the plugin object 27 @param plugin reference to the plugin object
28 @type RefactoringRopePlugin 28 @type MqttMonitorPlugin
29 """ 29 """
30 ConfigurationPageBase.__init__(self) 30 ConfigurationPageBase.__init__(self)
31 self.setupUi(self) 31 self.setupUi(self)
32 self.setObjectName("MqttPage") 32 self.setObjectName("MqttPage")
33 33
45 self.__plugin.getPreferences("RecentTopicsNumber") 45 self.__plugin.getPreferences("RecentTopicsNumber")
46 ) 46 )
47 47
48 def save(self): 48 def save(self):
49 """ 49 """
50 Public slot to save the Rope Autocompletion configuration. 50 Public slot to save the MQTT Monitor configuration.
51 """ 51 """
52 if self.mqttv31Button.isChecked(): 52 if self.mqttv31Button.isChecked():
53 protocol = MqttProtocols.MQTTv31 53 protocol = MqttProtocols.MQTTv31
54 elif self.mqttv311Button.isChecked(): 54 elif self.mqttv311Button.isChecked():
55 protocol = MqttProtocols.MQTTv311 55 protocol = MqttProtocols.MQTTv311

eric ide

mercurial