def __init__(self,
                 parent=None,
                 default_pixmap=None,
                 hover_pixmap=None,
                 active_pixmap=None,
                 checkable=False,
                 checked=False):
        """
        Initializes the class.

        :param parent: Widget parent.
        :type parent: QObject
        :param default_pixmap: Label default pixmap.
        :type default_pixmap: QPixmap
        :param hover_pixmap: Label hover pixmap.
        :type hover_pixmap: QPixmap
        :param active_pixmap: Label active pixmap.
        :type active_pixmap: QPixmap
        :param checkable: Checkable state.
        :type checkable: bool
        :param checked: Checked state.
        :type checked: bool
        """

        LOGGER.debug("> Initializing '{0}()' class.".format(self.__class__.__name__))

        QLabel.__init__(self, parent)

        # --- Setting class attributes. ---
        self.__default_pixmap = None
        self.default_pixmap = default_pixmap or QPixmap()
        self.__hover_pixmap = None
        self.hover_pixmap = hover_pixmap or QPixmap()
        self.__active_pixmap = None
        self.active_pixmap = active_pixmap or QPixmap()

        self.__checkable = None
        self.checkable = checkable
        self.__checked = None
        self.checked = checked

        self.__menu = None

        if self.__checked:
            self.setPixmap(self.__active_pixmap)
        else:
            self.setPixmap(self.__default_pixmap)
def __init__ ( self , parent = None , default_pixmap = None , hover_pixmap = None , active_pixmap = None , checkable = False , checked = False ) : LOGGER . debug ( "> Initializing '{0}()' class." . format ( self . __class__ . __name__ ) ) QLabel . __init__ ( self , parent ) self . __default_pixmap = None self . default_pixmap = default_pixmap or QPixmap ( ) self . __hover_pixmap = None self . hover_pixmap = hover_pixmap or QPixmap ( ) self . __active_pixmap = None self . active_pixmap = active_pixmap or QPixmap ( ) self . __checkable = None self . checkable = checkable self . __checked = None self . checked = checked self . __menu = None if self . __checked : self . setPixmap ( self . __active_pixmap ) else : self . setPixmap ( self . __default_pixmap )
Initializes the class.

        :param parent: Widget parent.
        :type parent: QObject
        :param default_pixmap: Label default pixmap.
        :type default_pixmap: QPixmap
        :param hover_pixmap: Label hover pixmap.
        :type hover_pixmap: QPixmap
        :param active_pixmap: Label active pixmap.
        :type active_pixmap: QPixmap
        :param checkable: Checkable state.
        :type checkable: bool
        :param checked: Checked state.
        :type checked: bool