From 81d235c50c9f22b130a916605e5fb46f56f1dbdb Mon Sep 17 00:00:00 2001 From: "B.Jothin kumar" Date: Wed, 13 Oct 2021 09:43:21 +0530 Subject: [PATCH 1/4] Update gui.py --- gui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gui.py b/gui.py index 9bd6397..e9d6eb4 100644 --- a/gui.py +++ b/gui.py @@ -24,6 +24,7 @@ scroll_bar.pack(side=tk.RIGHT, fill=tk.Y) scroll_bar.configure(command=chat_listbox.yview) chat_listbox.configure(yscrollcommand=scroll_bar.set) main_frame.pack(fill=tk.BOTH) +root.geometry('700x500') root.wm_title('Desktop assistant') root.resizable(False, False) mainloop = root.mainloop From 3bd0d51e5dbaa981e9cea7fd5bef7ad43db8fc6b Mon Sep 17 00:00:00 2001 From: "B.Jothin kumar" Date: Wed, 13 Oct 2021 13:04:11 +0530 Subject: [PATCH 2/4] 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() From cf05f0221fea88cddd520385a291ddda2a3c5000 Mon Sep 17 00:00:00 2001 From: "B.Jothin kumar" Date: Wed, 13 Oct 2021 13:05:51 +0530 Subject: [PATCH 3/4] Update gui.py --- gui.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/gui.py b/gui.py index cb6e808..343775d 100644 --- a/gui.py +++ b/gui.py @@ -18,8 +18,6 @@ def speak(text): chat_listbox.insert('end', f'Assistant: {text}') -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) @@ -30,4 +28,3 @@ root.minsize(700, 500) root.wm_title('Desktop assistant') root.resizable(False, True) mainloop = root.mainloop -mainloop() From 5a00a643f44021b2d2a3afb71e444f1ebb2cb847 Mon Sep 17 00:00:00 2001 From: "B.Jothin kumar" Date: Wed, 13 Oct 2021 13:07:19 +0530 Subject: [PATCH 4/4] Update gui.py --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.py b/gui.py index 343775d..1e87ab2 100644 --- a/gui.py +++ b/gui.py @@ -19,7 +19,7 @@ def speak(text): scroll_bar.pack(side=tk.RIGHT, fill=tk.Y) -chat_listbox.pack(fill=tk.BOTH, side=tk.RIGHT) +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)