diff --git a/GUITesting/GUITest1 b/GUITesting/GUITest1 deleted file mode 100644 index b66d6b0..0000000 --- a/GUITesting/GUITest1 +++ /dev/null @@ -1,28 +0,0 @@ -import random -import tkinter as tk - -root = tk.Tk() -userInput = tk.Entry(root) -userInput.pack() - -greetings = ['hola', 'hello', 'hi', 'hey!', 'hey'] -question = ['how are you?', 'how are you doing?', 'how are you', 'how are you doing'] -responses = ['Okay', "I'm fine"] -huh = "I did not understand what you said" - -def cb(event): - userText = userInput.get() - userText = userText.lower() - if userText in greetings: - botText = random.choice(greetings) - elif userText in question: - botText = random.choice(responses) - else: - botText = huh - output.config(text=botText) - -userInput.bind("", cb) -output = tk.Label(root, text='') -output.pack() - -tk.mainloop()