diff options
author | Leonard Kugis <leonard@kug.is> | 2023-03-21 18:44:47 +0100 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2023-03-21 18:44:47 +0100 |
commit | 07d60867be5fd412203fef41765f71a3e4258ad2 (patch) | |
tree | 21c867198558691c3fd908348e0ca72d04508abc /gui.py | |
parent | 1e8b7d36a6175d6b59fe868eb5aede6bd30ae9ac (diff) |
GuiMain: Reordered
Diffstat (limited to 'gui.py')
-rw-r--r-- | gui.py | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -15,12 +15,12 @@ class GuiMain(object): self.__open_system = BooleanVar(self.__master, value=args["open_system"]) Label(self.__master, text="Base directory for walking:").grid(row=0, column=0) - Entry(self.__master, textvariable=self.__base).grid(row=0, column=1) - Button(self.__master, text="Browse", command=lambda: self.__browse(base)).grid(row=0, column=3) - Checkbutton(self.__master, text="Use prediction for image tagging", variable=self.__predict_images).grid(row=1, sticky=W) - Checkbutton(self.__master, text="Show GUI for tagging", variable=self.__gui_tag).grid(row=2, sticky=W) - Checkbutton(self.__master, text="Open all files with system default", variable=self.__open_system).grid(row=3, sticky=W) - Button(self.__master, text="Start", command=self.__master.destroy).grid(row=4) + Entry(self.__master, textvariable=self.__base).grid(row=0, column=1, columnspan=2) + Button(self.__master, text="Browse", command=self.__browse).grid(row=0, column=3) + Checkbutton(self.__master, text="Use prediction for image tagging", variable=self.__predict_images).grid(row=1, column=0, columnspan=4, sticky=W) + Checkbutton(self.__master, text="Show GUI for tagging", variable=self.__gui_tag).grid(row=2, column=0, columnspan=4, sticky=W) + Checkbutton(self.__master, text="Open all files with system default", variable=self.__open_system).grid(row=3, column=0, columnspan=4, sticky=W) + Button(self.__master, text="Start", command=self.__master.destroy).grid(row=4, column=0, columnspan=4) def loop(self): self.__master.mainloop() @@ -31,9 +31,9 @@ class GuiMain(object): self.__args["open_system"] = self.__open_system.get() return self.__args - def __browse(self, folder_path): + def __browse(self): filename = filedialog.askdirectory() - folder_path.set(filename) + self.__base.set(filename) class GuiTag(object): RETURN_NEXT = 0 |