Skip to content

Commit

Permalink
wipes log before every run, reorders ui to make it a bit clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
sphawes committed Jun 5, 2024
1 parent 8012ddd commit 1c7f65e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions src/FarmUpload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/Log.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ def write(self, message):
self.logUI.see("end")

def wipe(self):
pass
self.logUI.delete('1.0', tk.END)

0 comments on commit 1c7f65e

Please sign in to comment.