Skip to content

Commit

Permalink
Browser: Show # of frames for Timelapse (#8)
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
Vinalti authored Dec 14, 2023
1 parent ef3e211 commit 7462490
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/open_micro_view/image_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ def prompt_timelapse(self):
command=partial(self.load_timelapse, fullpath))
load_tl.pack(side='bottom', expand=True, pady=10)

try:
n_frames = f' - {len(os.listdir(fullpath))} frames'
self.tk_file_info.set(self.tk_file_info.get() + n_frames)
except OSError:
logging.error("Impossible to list files in %s", fullpath, exc_info=True)

frame.update()
try:
# Find the first image in the directory
Expand Down

0 comments on commit 7462490

Please sign in to comment.