PluginMqttMonitor.py

branch
eric7
changeset 141
864edfb1bb63
parent 139
b7ca79939cc7
child 143
51bc5bcc672a
equal deleted inserted replaced
140:853ffd248dda 141:864edfb1bb63
19 19
20 try: 20 try:
21 from eric7.EricGui import EricPixmapCache 21 from eric7.EricGui import EricPixmapCache
22 except ImportError: 22 except ImportError:
23 from UI import PixmapCache as EricPixmapCache 23 from UI import PixmapCache as EricPixmapCache
24
25 try:
26 from eric7.UI.UserInterface import UserInterfaceSide
27
28 _Side = UserInterfaceSide.Right
29 except ImportError:
30 # backward compatibility for eric < 24.2
31 from eric7.UI.UserInterface import UserInterface
32
33 _Side = UserInterface.RightSide
24 34
25 from MqttMonitor.MqttProtocols import MqttProtocols 35 from MqttMonitor.MqttProtocols import MqttProtocols
26 36
27 # Start-Of-Header 37 # Start-Of-Header
28 name = "MQTT Monitor Plugin" 38 name = "MQTT Monitor Plugin"
29 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 39 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
30 autoactivate = True 40 autoactivate = True
31 deactivateable = True 41 deactivateable = True
32 version = "10.4.2" 42 version = "10.5.0"
33 className = "MqttMonitorPlugin" 43 className = "MqttMonitorPlugin"
34 packageName = "MqttMonitor" 44 packageName = "MqttMonitor"
35 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" 45 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker"
36 longDescription = ( 46 longDescription = (
37 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" 47 """Plug-in implementing a tool to connect to a MQTT broker, subscribe"""
192 "sbMqttMonitor96" 202 "sbMqttMonitor96"
193 if self.__ui.getLayoutType() == "Sidebars" 203 if self.__ui.getLayoutType() == "Sidebars"
194 else "mqtt22-{0}".format(iconSuffix) 204 else "mqtt22-{0}".format(iconSuffix)
195 ) 205 )
196 self.__ui.addSideWidget( 206 self.__ui.addSideWidget(
197 self.__ui.RightSide, 207 _Side,
198 self.__widget, 208 self.__widget,
199 EricPixmapCache.getIcon(os.path.join("MqttMonitor", "icons", iconName)), 209 EricPixmapCache.getIcon(os.path.join("MqttMonitor", "icons", iconName)),
200 self.tr("MQTT Monitor"), 210 self.tr("MQTT Monitor"),
201 ) 211 )
202 212

eric ide

mercurial