From 833b39b00128885aa35587ab368db6485430f4e3 Mon Sep 17 00:00:00 2001 From: Karl Voit Date: Wed, 3 Sep 2025 15:21:42 +0200 Subject: [PATCH] gui: fixed wrong size of vocabulary --- filetags/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filetags/__init__.py b/filetags/__init__.py index d18db16..d23d79b 100755 --- a/filetags/__init__.py +++ b/filetags/__init__.py @@ -403,6 +403,7 @@ class TagDialog: self.root.title("filetags") self.vocabulary = vocabulary + num_of_vocabulary_entries = len(vocabulary) self.entered_tags = "" low_contrast_fg_color = self.get_soft_foreground(root, 0.6) ## better than hard-coded gray values that interfere with default color schema @@ -444,7 +445,7 @@ class TagDialog: self.entry.bind("", self.on_return) # This binds the RETURN (Enter) key self.entry.bind("", lambda event: self.on_cancel()) # ESC cancels the dialog - self.label = tk.Label(self.root, fg=low_contrast_fg_color, text="Complete 2 tags with the -key") + self.label = tk.Label(self.root, fg=low_contrast_fg_color, text=f"Complete {str(num_of_vocabulary_entries)} tags with the -key") self.label.pack(pady=(30,0)) # A listbox to show matching tags