Skip to content

Commit

Permalink
Upset caption in pyglet imshow window
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jul 27, 2023
1 parent 71dcc99 commit 86d9b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgviz/_io/_pyglet/pyglet_imshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _pyglet_imshow_list(images, caption=None, interval=0.5, keymap=None):
def _post_image_update():
filename = images[window.index].filename
_centerize_sprite_in_window(sprite, window)
window.set_caption(filename)
window.set_caption("{} {}/{}".format(filename, window.index + 1, len(images)))
print(
filename,
"{}/{}".format(window.index + 1, len(images)),
Expand Down

0 comments on commit 86d9b35

Please sign in to comment.