Ejemplo n.º 1
0
    def __init__(self, parent=None):
        QtCore.QObject.__init__(self, parent=parent)
        Tester.__init__(self)

        # thread
        self._runner = QtCore.QThread(parent=self)

        # object to run in the thread
        self._graph = Grapher()

        # init main events
        self.__init_events()

        # init thread
        self.__init_thread()

        # self stop - indicating to the controller necessity to pass the data for processing
        self.stop = False
Ejemplo n.º 2
0
    def __init__(self, parent=None):
        QtCore.QObject.__init__(self, parent=parent)
        Tester.__init__(self)

        # thread
        self._runner = QtCore.QThread(parent=self)

        # object to run in the thread
        self._reader = Reader()

        # timer controlling the reader
        self._timer = QtCore.QTimer(parent=self)

        # init main events
        self.__init_events()

        # init thread
        self.__init_thread()

        # self stop
        self.stop = False

        # self data
        self.current_data = None