code: def mousePressEvent(self, event):
          
  
          self.setPixmap(self.__active_pixmap)
          self.__menu and self.__menu.exec_(QCursor.pos())
          self.pressed.emit()
docs: Reimplements the :meth:`QLabel.mousePressEvent` method.
  
          :param event: QEvent.
          :type event: QEvent