aboutsummaryrefslogtreecommitdiff
path: root/src/gui/signal.py
blob: b604929eddc695581bb253d076a4a5b4aa7aae96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from PyQt5 import QtCore

class Reload(QtCore.QObject):
    _signal = QtCore.pyqtSignal(name = 'reload')

    def __init__(self):
        QtCore.QObject.__init__(self)

    def emit(self):
        self._signal.emit()

    def connect(self, f):
        self._signal.connect(f)