Show image index in the title

This commit is contained in:
Michael Stevenson 2022-11-27 09:49:46 -08:00
parent 499fbd09a8
commit d49098dbca
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class ImageView(tk.Frame):
img = self.images[self.index] img = self.images[self.index]
# filename # filename
title = self.images[self.index].path.name if len(self.images) > 0 else '' title = self.images[self.index].path.name if len(self.images) > 0 else ''
self.root.title(title) self.root.title(title + f' ({self.index+1}/{len(self.images)})')
# caption # caption
self.caption_field.delete(1.0, tk.END) self.caption_field.delete(1.0, tk.END)
self.caption_field.insert(tk.END, img.read_caption()) self.caption_field.insert(tk.END, img.read_caption())