gui: add full path when adding folder (close #23)

This commit is contained in:
Ian Burgwin
2020-07-12 21:12:59 -07:00
parent ba5c5f19a7
commit 3a5f554b58

4
gui.py
View File

@@ -11,6 +11,7 @@ import tkinter as tk
import tkinter.filedialog as tkfiledialog import tkinter.filedialog as tkfiledialog
import style import style
class themedFrame(tk.Frame): class themedFrame(tk.Frame):
def __init__(self, frame, **kw): def __init__(self, frame, **kw):
tk.Frame.__init__(self, frame, **kw) tk.Frame.__init__(self, frame, **kw)
@@ -21,6 +22,7 @@ class themedFrame(tk.Frame):
if not kw.get("highlightthickness"): if not kw.get("highlightthickness"):
self.configure(highlightthickness=0) self.configure(highlightthickness=0)
class Button(tk.Label): class Button(tk.Label):
"""Cross-platform button""" """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"))] (os.path.isfile(os.path.join(cia_dir_to_add, f)) and f.endswith(".cia"))]
if cias_to_add: if cias_to_add:
for cia_to_add in 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): def remove_cia(self):
index = self.cia_box.curselection() index = self.cia_box.curselection()