Пример #1
0
    def listen_reply(self):
        spoken = listen()
        reply = input_taking(spoken)

        if reply[0] == 'news':
            self.upperLayout.outputEdit.setText("Showing news")
            speak_this("Showing news")
            self.createAdditionalLayout(reply[1], type="news")

        elif reply[0] == 'mail':
            self.upperLayout.outputEdit.setText("Mail Service")
            speak_this("Opening Mail Service")
            self.createAdditionalLayout(["No Need"], type="mail")

        elif reply[0] == 'notes':
            speak_this("Opening Notes")
            self.upperLayout.outputEdit.setText("Showing Note Widget")
            self.createAdditionalLayout(["No need"], type="notes")

        elif reply[0] == 'surprise':
            speak_this("I have a cure for Boredom")
            self.upperLayout.outputEdit.setText("Check Your Browser")
            self.bore()

        else:
            self.upperLayout.outputEdit.setText(reply[1])
Пример #2
0
def OnClicked(arg=None):
    global ans
    userData = E1.get()
    ans=input_taking(userData)
    E1.delete(0,END)
    removeoutput()
    return userData
Пример #3
0
    def callGroot(self):
        typed = str(self.upperLayout.inputEdit.text())
        reply = input_taking(typed)
        if reply[0] == 'news':
            speak_this("Showing news")
            self.upperLayout.outputEdit.setText("Showing news")

        self.upperLayout.outputEdit.setText(reply[1])
Пример #4
0
 def listen_reply(self):
     spoken = listen()
     reply = input_taking(spoken)
     if reply[0] == 'news':
         speak_this("Showing news")
         print(reply[1])
         self.createNewsLayout(reply[1])
         self.upperLayout.outputEdit.setText("Showing news")
     else:
         self.upperLayout.outputEdit.setText(reply[1])
Пример #5
0
    def callGroot(self):
        typed = str(self.upperLayout.inputEdit.text())
        reply = input_taking(typed)
        if reply[0] == 'news':
            speak_this("Showing news")
            self.upperLayout.outputEdit.setText("Showing news")

        elif reply[0] == 'notes':
            speak_this("Opening Notes")
            self.upperLayout.outputEdit.setText("Showing Note Widget")
            self.createAdditionalLayout(reply[1], type="notes")

        elif reply[0] == 'mail':
            speak_this("Opening Mail Service")
            self.upperLayout.outputEdit.setText("Mail Service")
            self.createAdditionalLayout(reply[1], type="mail")

        elif reply[0] == 'surprise':
            speak_this("Let's not get bored")
            self.upperLayout.outputEdit.setText("Check your browser")
            self.bore()

        else:
            self.upperLayout.outputEdit.setText(reply[1])
Пример #6
0
 def listen_reply(self):
     spoken = listen()
     reply = input_taking(spoken)
     self.outputEdit.setText(reply)
Пример #7
0
 def callGroot(self):
     typed = str(self.inpEdit.text())
     reply = input_taking(typed)
     self.outputEdit.setText(reply)
Пример #8
0
def listen_def():
    global ans
    textfromspeach=listen();
    ans=input_taking(textfromspeach)
    removeoutput()