Exemple #1
0
    def init_heartbeat(self):
        """
		desc:
			Initializes heartbeat.
		"""

        if self.heartbeat_interval <= 0 or self.var.fullscreen == u'yes' or \
         self.output_channel is None:
            self.heartbeat = None
            return
        from libopensesame.heartbeat import heartbeat
        self.heartbeat = heartbeat(self, interval=self.heartbeat_interval)
        self.heartbeat.start()
Exemple #2
0
	def init_heartbeat(self):

		"""
		desc:
			Initializes heartbeat.
		"""

		if self.heartbeat_interval <= 0 or self.var.fullscreen == u'yes' or \
			self.output_channel is None:
			self.heartbeat = None
			return
		from libopensesame.heartbeat import heartbeat
		self.heartbeat = heartbeat(self, interval=self.heartbeat_interval)
		self.heartbeat.start()