Merge pull request #55 from Jothin-kumar/issue_52

GUI bug fix
This commit is contained in:
Technerd Brainiac 2021-10-17 21:52:09 +05:30 committed by GitHub
commit 0eeaac7670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
gui.py
View File

@ -16,14 +16,15 @@ speak_button.pack(side=tk.LEFT, anchor=tk.SW)
def speak(text):
chat_listbox.insert('end', f'Assistant: {text}')
root.geometry('700x500')
chat_listbox.pack(fill=tk.Y, side=tk.LEFT)
scroll_bar.pack(side=tk.RIGHT, fill=tk.Y)
chat_listbox.pack(fill=tk.Y, side=tk.RIGHT)
scroll_bar.configure(command=chat_listbox.yview)
chat_listbox.configure(yscrollcommand=scroll_bar.set)
main_frame.pack(fill=tk.BOTH)
root.geometry('700x500')
root.minsize(700, 500)
root.wm_title('Desktop assistant')
root.resizable(False, False)
root.resizable(False, True)
mainloop = root.mainloop