From 3bd0d51e5dbaa981e9cea7fd5bef7ad43db8fc6b Mon Sep 17 00:00:00 2001 From: "B.Jothin kumar" Date: Wed, 13 Oct 2021 13:04:11 +0530 Subject: [PATCH] Update gui.py --- gui.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gui.py b/gui.py index e9d6eb4..cb6e808 100644 --- a/gui.py +++ b/gui.py @@ -16,15 +16,18 @@ 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) +for x in range(1, 1001): + speak(str(x)) scroll_bar.pack(side=tk.RIGHT, fill=tk.Y) +chat_listbox.pack(fill=tk.BOTH, 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 +mainloop()