vial/src/main/python/clickable_label.py

15 lines
310 B
Python
Raw Normal View History

2020-10-14 22:21:33 -04:00
# SPDX-License-Identifier: GPL-2.0-or-later
2020-10-14 20:27:24 -04:00
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import QLabel
class ClickableLabel(QLabel):
clicked = pyqtSignal()
def __init__(self, parent=None):
super().__init__(parent)
def mousePressEvent(self, ev):
self.clicked.emit()