From 1c7f65e7cbfaaa991c93509b4bd2430f82d25c96 Mon Sep 17 00:00:00 2001 From: Stephen Hawes Date: Wed, 5 Jun 2024 11:35:12 -0400 Subject: [PATCH] wipes log before every run, reorders ui to make it a bit clearer --- src/FarmUpload.py | 13 ++++++------- src/Log.py | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/FarmUpload.py b/src/FarmUpload.py index 25a59b3..3e733dd 100644 --- a/src/FarmUpload.py +++ b/src/FarmUpload.py @@ -56,18 +56,18 @@ def loadUI(self): self.s = tk.Label(self.ui, text='No settings file selected') self.s.pack(pady=10, padx=10) - choose_folder_button = tk.Button(self.ui, text="Choose Folder to Upload", command=self.chooseFolder) - choose_folder_button.pack(pady=10, padx=10) - - self.v = tk.Label(self.ui, text='No directory selected') - self.v.pack(pady=10) - select_printers = tk.Label(self.ui, text="Select which printers to send to:") select_printers.pack(pady=10) self.printerSelectFrame = tk.Frame(master=self.ui, highlightbackground="black", highlightthickness=1) self.printerSelectFrame.pack() + choose_folder_button = tk.Button(self.ui, text="Choose Folder to Upload", command=self.chooseFolder) + choose_folder_button.pack(pady=10, padx=10) + + self.v = tk.Label(self.ui, text='No directory selected') + self.v.pack(pady=10) + send_button = tk.Button(self.ui, text="Send to Farm", command=self.send) send_button.pack(pady=10) @@ -77,7 +77,6 @@ def loadUI(self): self.logUI.pack() - def chooseFolder(self): self.fileDirectory = filedialog.askdirectory() self.v.config(text=os.path.basename(self.fileDirectory)) diff --git a/src/Log.py b/src/Log.py index 61043e4..e057fa6 100644 --- a/src/Log.py +++ b/src/Log.py @@ -12,4 +12,4 @@ def write(self, message): self.logUI.see("end") def wipe(self): - pass \ No newline at end of file + self.logUI.delete('1.0', tk.END) \ No newline at end of file