MqttMonitor/MqttMonitorWidget.py

Sun, 26 Aug 2018 17:27:45 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 26 Aug 2018 17:27:45 +0200
changeset 1
bf1a17419d44
child 3
82845c0fd550
permissions
-rw-r--r--

Added first outline of the MQTT Monitor.

# -*- 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