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)
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) '''