diff --git a/CHANGES.rst b/CHANGES.rst index be36bfbcbd29eef13a39fe8e0dc373be716876db..0fcc68433a703e8a1864a8c6582ca720892dfe97 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,11 @@ Kvalikirstu2 Changelog ====================== +1.0.8 - 2021/01/25 +------------------ +- Fixed bug with sidebar buttons disappearing +- wxPython version fixed to 4.1.1. + 1.0.7 - 2020/11/24 ------------------ - Fixed bug with citation requirement being added to files outside of the data folder diff --git a/kvalikirstu2/gui.py b/kvalikirstu2/gui.py index ac4ec2a3b7e03360d49c86ea266a128c01554ae7..20d86c8241b37b6828f9a0a241b600a344cfa817 100644 --- a/kvalikirstu2/gui.py +++ b/kvalikirstu2/gui.py @@ -6,6 +6,7 @@ import locale import logging import math import os +import pkg_resources import sys import traceback import wx @@ -59,11 +60,12 @@ class MainWindow(wx.Frame): def _update_title(self, exists): """Updates the title of the window. """ + title_with_version = 'Kvalikirstu2 (v.{})'.format(pkg_resources.get_distribution('kvalikirstu2').version) if exists: metadata = self.model.get_metadata() - self.SetTitle('%s: %s - Kvalikirstu2' % (metadata.study_id, self.model.get_study_path())) + self.SetTitle('%s: %s - %s' % (metadata.study_id, self.model.get_study_path(), title_with_version)) else: - self.SetTitle('Kvalikirstu2') + self.SetTitle(title_with_version) def add_button_exists_hook(self, button_bar, button_id, msg): """Enable/disable this button in the button bar based on the message type msg. diff --git a/setup.py b/setup.py index 6721678c98de179725eb93f54d478fc5d2229474..b12d9c8cc02facead1d13d19e9e02a15fc655277 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from setuptools import setup, find_packages setup( name='kvalikirstu2', - version='1.0.7', + version='1.0.8', url='', description='A tool for analyzing qualitative studies', author='Jukka Lipsanen and Saara Saaninkoski',