Skip to content

Commit

Permalink
Load interface first for feedback and then get file list, ref #3
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Christoph Borchardt <[email protected]>
  • Loading branch information
jancborchardt committed Apr 7, 2018
1 parent 338ddc2 commit 0190cd2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions keeporsweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,17 @@ class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master, bg="white")
self.pack()
self.random_files(path)

# Set up basic layout
self.create_widgets()

# Get the randomized file list
self.random_files(path)

# Load first element
self.element_preview()
self.element_text()


# Return random list of all files
def random_files(self, path):
Expand All @@ -63,10 +71,6 @@ def create_widgets(self):
self.details = Label(self, font=font_size, fg="#aaa", bg="white", width="40")
self.details.pack()

# Load first element
self.element_preview()
self.element_text()

# Keep button
self.keep = tk.Button(self, text="Keep", foreground="white", activeforeground="white", background="#0082c9", activebackground="#0072b0", command=self.keep_element, cursor="heart", bitmap="warning", compound="top", relief="flat", font=font_size_weight, default="active")
self.keep.pack(side="right", ipadx=padding, ipady=padding, padx=margin, pady=margin)
Expand Down

0 comments on commit 0190cd2

Please sign in to comment.