def display_notify(self): if os.path.exists(FILEFOLDER + "/notification.lmf"): print "Notification" time.sleep(0.05) with open(FILEFOLDER + "/notification.lmf") as f: data = lispeak.parseData(f.read()) self.queue.append(data) os.remove(FILEFOLDER + "/notification.lmf") return True
def display_notify(self): if os.path.exists("notification.lmf"): #may use dbus instead of notification.lmf ? print "Notification" time.sleep(0.05) with open("notification.lmf") as f: data = lispeak.parseData(f.read()) self.queue.append(data) print data,"ADDED TO QUEUE" os.remove("notification.lmf") return True
def display_notify(self): if os.path.exists("notification.lmf" ): #may use dbus instead of notification.lmf ? print "Notification" time.sleep(0.05) with open("notification.lmf") as f: data = lispeak.parseData(f.read()) self.queue.append(data) print data, "ADDED TO QUEUE" os.remove("notification.lmf") return True
def display_notify(self): if os.path.exists("pycmd_done"): self.ntitle.set_text("Done!") os.system("touch in_grey") if os.path.exists("pycmd_record"): os.system("touch in_green") self.ntitle.set_text("Listening...") if os.path.exists("pycmd_stop"): self.ntitle.set_text("Please Wait...") os.system("touch in_grey") if os.path.exists("pycmd_wait"): self.ntitle.set_text("Analyzing...") os.system("touch in_grey") if os.path.exists("notification.lmf"): time.sleep(0.05) with open("notification.lmf") as f: data = lispeak.parseData(f.read()) self.queue.append(data) print data,"ADDED TO QUEUE" os.remove("notification.lmf") return True