|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 """ |
|
4 Module implementing MqttMonitorWidget. |
|
5 """ |
|
6 |
|
7 from __future__ import unicode_literals |
|
8 |
|
9 import os |
|
10 |
|
11 from PyQt5.QtCore import pyqtSlot |
|
12 from PyQt5.QtWidgets import QWidget |
|
13 |
|
14 from .Ui_MqttMonitorWidget import Ui_MqttMonitorWidget |
|
15 |
|
16 import UI.PixmapCache |
|
17 |
|
18 |
|
19 class MqttMonitorWidget(QWidget, Ui_MqttMonitorWidget): |
|
20 """ |
|
21 Class documentation goes here. |
|
22 """ |
|
23 def __init__(self, parent=None): |
|
24 """ |
|
25 Constructor |
|
26 |
|
27 @param parent reference to the parent widget |
|
28 @type QWidget |
|
29 """ |
|
30 super(MqttMonitorWidget, self).__init__(parent) |
|
31 self.setupUi(self) |
|
32 |
|
33 self.pixmapLabel.setPixmap(UI.PixmapCache.getPixmap( |
|
34 os.path.join("MqttMonitor", "icons", "mqtt48.png"))) |