From 3a5f554b58ed0d1b71b6d984ce150340ff0b6886 Mon Sep 17 00:00:00 2001 From: Ian Burgwin Date: Sun, 12 Jul 2020 21:12:59 -0700 Subject: [PATCH] gui: add full path when adding folder (close #23) --- gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui.py b/gui.py index 41e7c9d..03162ba 100644 --- a/gui.py +++ b/gui.py @@ -11,6 +11,7 @@ import tkinter as tk import tkinter.filedialog as tkfiledialog import style + class themedFrame(tk.Frame): def __init__(self, frame, **kw): tk.Frame.__init__(self, frame, **kw) @@ -21,6 +22,7 @@ class themedFrame(tk.Frame): if not kw.get("highlightthickness"): self.configure(highlightthickness=0) + class Button(tk.Label): """Cross-platform button""" @@ -395,7 +397,7 @@ class gui(tk.Tk): (os.path.isfile(os.path.join(cia_dir_to_add, f)) and f.endswith(".cia"))] if cias_to_add: for cia_to_add in cias_to_add: - self.cia_box.insert('end', cia_to_add) + self.cia_box.insert('end', os.path.join(cia_dir_to_add, cia_to_add)) def remove_cia(self): index = self.cia_box.curselection()