Commit 5e2a92cb authored by André Anjos's avatar André Anjos

[gui] Print version number on the title and on the log

parent 3a39f8d4
Pipeline #26585 passed with stages
in 12 minutes and 54 seconds
......@@ -146,6 +146,8 @@ import tkinter.font
import functools
import warnings
import pkg_resources
import numpy
from PIL import Image
import skimage
......@@ -198,7 +200,9 @@ class AnnotatorApp(tkinter.Tk):
marker_radius=1, pixel_skip=5, default_mode = 'line', *args, **kwargs):
super(AnnotatorApp, self).__init__(*args, **kwargs)
self.title("annotate")
self.version = pkg_resources.require('bob.ip.annotator')[0].version
logger.info('Annotator App version %s', self.version)
self.title("annotate (%s)" % self.version)
self.basedir = images
self.filelist = io.find(self.basedir, '*%s' % extension)
......@@ -477,7 +481,7 @@ class AnnotatorApp(tkinter.Tk):
# set the window title
stem = os.path.relpath(self.canvas.current_filename(), self.basedir)
self.title("annotate: %s (%d/%d) [%s]" % (stem,
self.title("annotate (%s): %s (%d/%d) [%s]" % (self.version, stem,
self.canvas.current_index()+1, len(self.canvas),
'viewing' if self.readonly else 'editing'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment