From b0461c0a12134c00657ee0a8f46e096cc2883f88 Mon Sep 17 00:00:00 2001 From: Sanket Gadge Date: Tue, 18 Aug 2020 20:46:33 +0530 Subject: [PATCH] Added new Tkinter Project Added new Tkinter project which is a Front end desing for a chatbot --- Chatbot Front End using Tkinter/ChatBotFE.py | 44 +++++++++++++++++++ Chatbot Front End using Tkinter/output.png | Bin 0 -> 5147 bytes 2 files changed, 44 insertions(+) create mode 100644 Chatbot Front End using Tkinter/ChatBotFE.py create mode 100644 Chatbot Front End using Tkinter/output.png diff --git a/Chatbot Front End using Tkinter/ChatBotFE.py b/Chatbot Front End using Tkinter/ChatBotFE.py new file mode 100644 index 0000000..1216650 --- /dev/null +++ b/Chatbot Front End using Tkinter/ChatBotFE.py @@ -0,0 +1,44 @@ +# Description : This is a GUI for a Chatbot + +#importing libraries +from tkinter import * + + +# Creating Tkiner instance with preferred size and a title +root = Tk() +root.title('Chat Bot') +root.geometry('400x500') + + +# Creating a Menu Bar +main_menu = Menu(root) + +# Adding File menus +file_menu = Menu(root) +file_menu.add_command(label='New File') +file_menu.add_command(label='Save') + +#Adding some Menus +main_menu.add_cascade(label='File', menu=file_menu) +main_menu.add_command(label='Exit') +root.config(menu = main_menu) + + +# Creating our Chat Window,, where messeage will be displayed +chatwin = Text(root, bd=1, bg='grey', width = 60, height = 8) +chatwin.place(x=6, y=6, height=385, width =370) + +# Creating the message input box +messagebox = Text(root, bg='grey', width=30, height=4) +messagebox.place(x=6, y=400, height=88, width=260) + +# Creating a send button +send = Button(root, text='Send', bg='grey', activebackground='light grey', width=12, height=4) +send.place(x = 270, y=400, height=88, width=100) + +#Adding a scrollbar +scrollbar = Scrollbar(root, command=chatwin.yview()) +scrollbar.place(x=375, y=6, height=385) + +# Running the tkinter app +root.mainloop() diff --git a/Chatbot Front End using Tkinter/output.png b/Chatbot Front End using Tkinter/output.png new file mode 100644 index 0000000000000000000000000000000000000000..5a9d50bf6fa69285bd18b52f10f5a3080ed1cc49 GIT binary patch literal 5147 z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