Exemplo n.º 1
0
	def __init__(self,evento,datos,login):  
		threading.Thread.__init__(self)  
		self.__evento=evento
		self.__datos=datos
		self.__login=login
		self.__recolectarDatos=Controlador(self.__login)
		self.__recolectarDatos.setDatos(self.__datos)
		self.__recolectarDatos.setEvento(self.__evento)
Exemplo n.º 2
0
class Hilo(threading.Thread):
	def __init__(self,evento,datos,login):  
		threading.Thread.__init__(self)  
		self.__evento=evento
		self.__datos=datos
		self.__login=login
		self.__recolectarDatos=Controlador(self.__login)
		self.__recolectarDatos.setDatos(self.__datos)
		self.__recolectarDatos.setEvento(self.__evento)
	def run(self):
		print("Hilo [run]...")
		self.__recolectarDatos.conectarNeuroSky()
		#print("Iniciando...%s"%self.getName)
		#time.sleep(15)
		#self.__datos.setEstado(True)
		'''