Skip to content

Commit

Permalink
Added new Tkinter Project
Browse files Browse the repository at this point in the history
Added new Tkinter project which is a Front end desing for a chatbot
  • Loading branch information
Sanket758 authored Aug 18, 2020
1 parent 818dcda commit b0461c0
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Chatbot Front End using Tkinter/ChatBotFE.py
Original file line number Diff line number Diff line change
@@ -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()
Binary file added Chatbot Front End using Tkinter/output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b0461c0

Please sign in to comment.