aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2023-03-21 19:24:18 +0100
committerLeonard Kugis <leonard@kug.is>2023-03-21 19:24:18 +0100
commit1c9f9d8345311004fb4b44414149d4530b338a85 (patch)
tree2bd1d1f015f9dcdf003928859c5a8c30f14db5ed
parent638f4877ce4f2d65d7a190d6590496d091f79bce (diff)
Added GUI titles
-rw-r--r--gui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index c5920d2..9bd6c2a 100644
--- a/gui.py
+++ b/gui.py
@@ -8,6 +8,7 @@ class GuiMain(object):
def __init__(self, args):
self.__master = Tk()
+ self.__master.title("file-tagger")
self.__args = args
self.__base = StringVar(self.__master, value=args["base"])
self.__predict_images = BooleanVar(self.__master, value=args["predict_images"])
@@ -58,6 +59,7 @@ class GuiTag(object):
def __init__(self, index, file, tags):
self.__ret = self.RETURN_NEXT
self.__master = Tk()
+ self.__master.title("Tag file {}".format(file))
self.__tags = StringVar(self.__master, value=','.join(tags))
Label(self.__master, text="Index: {}".format(index)).grid(row=0, column=0, columnspan=2)
Label(self.__master, text="File: {}".format(file)).grid(row=1, column=0, columnspan=2)
@@ -86,6 +88,7 @@ class GuiImage(object):
def __init__(self, index, file, img, tags):
self.__ret = self.RETURN_NEXT
self.__master = Tk()
+ self.__master.title("Tag file {}".format(file))
self.__tags = StringVar(self.__master, value=','.join(tags))
self.__image_pil = Image.fromarray(img)
self.__image = ImageTk.PhotoImage(image=self.__image_pil)