def run(self): global son while not self._stopevent.isSet(): type,received = Client.receiveMsg() if type=="N": #print(received) Client.notify(received) else: print("-->%s" % received) if son: adire=received[:-14] Audio.parle(adire) time.sleep(0.01)
def run(self): global son while not self._stopevent.isSet(): typ,received = Client.receiveMsg() if typ=="N": Client.notify(received) elif typ=="F": r=received.split(";") FileManager.convertFileReceive(r[0],r[1]) Client.notify("notif;Transfert;Fichier "+r[1]+" bien reçu;4") else: print("\n-->%s" % received) if son: adire=received[:-14] Audio.parle(adire) time.sleep(0.01)