Skip to content
Browse files

Altered link detection

  • Loading branch information
hortonr6 committed Nov 22, 2017
1 parent 7ddfb7a commit 7785e0444fa64e1b4f0f0cc38597cf7d07652de9
Showing with 3 additions and 3 deletions.
  1. +3 −3
@@ -33,7 +33,7 @@ def receiveMessage(i): #Richard
message = thisSocket.recv(1024).decode()

if "https://" in message:
if "https://" in message or "http://" in message:
searchLink = message
hyperlinkObj = tkHLM.HyperlinkManager(chatHistory)

@@ -87,7 +87,7 @@ def sendMessage(event=None): #Richard
#GUI Start
window = tk.Tk() #Creates the main window for the interface
window.title("Chatbot Jeff")
window.configure(background="cornflower blue")

lblTitle = tk.Label(window, text="CHATBOT JEFF", bg="cornflower blue", font=("Helvetica", 24)) #Main title for the chatbot GUI
@@ -103,7 +103,7 @@ def sendMessage(event=None): #Richard
userInputFrame = tk.Frame(window) #Creates a frame to hold the widgets related to user input
userInputFrame.configure(background="cornflower blue")

userInput = tk.Entry(userInputFrame, width=80) #Adds a text entry widget to the frame
userInput = tk.Entry(userInputFrame, width=75) #Adds a text entry widget to the frame
userInput.grid(row=0, column=0, ipady=3, padx=2)
userInput.bind("<Return>", sendMessage) #Binds the return key to the widget so that it calls the sendMessage function when the key is pressed

0 comments on commit 7785e04

Please sign in to comment.
You can’t perform that action at this time.