コード例 #1
0
 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
コード例 #2
0
ファイル: notify.py プロジェクト: Abdillah/LiSpeak
 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
コード例 #3
0
ファイル: notify.py プロジェクト: Coco2233/LiSpeak
 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
コード例 #4
0
ファイル: notify.py プロジェクト: luchfilip/LiSpeak
 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
コード例 #5
0
ファイル: notify.py プロジェクト: queer1/LiSpeak
 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