MqttMonitor/MqttMonitorWidget.py

changeset 1
bf1a17419d44
child 3
82845c0fd550
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MqttMonitor/MqttMonitorWidget.py	Sun Aug 26 17:27:45 2018 +0200
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+
+"""
+Module implementing MqttMonitorWidget.
+"""
+
+from __future__ import unicode_literals
+
+import os
+
+from PyQt5.QtCore import pyqtSlot
+from PyQt5.QtWidgets import QWidget
+
+from .Ui_MqttMonitorWidget import Ui_MqttMonitorWidget
+
+import UI.PixmapCache
+
+
+class MqttMonitorWidget(QWidget, Ui_MqttMonitorWidget):
+    """
+    Class documentation goes here.
+    """
+    def __init__(self, parent=None):
+        """
+        Constructor
+        
+        @param parent reference to the parent widget
+        @type QWidget
+        """
+        super(MqttMonitorWidget, self).__init__(parent)
+        self.setupUi(self)
+        
+        self.pixmapLabel.setPixmap(UI.PixmapCache.getPixmap(
+            os.path.join("MqttMonitor", "icons", "mqtt48.png")))

eric ide

mercurial