Free Motion Capture for Everyone πβ¨
TypeScript
Jon/update home widget (#479)
jonmatthis41606091192c
diff --git a/freemocap/__init__.py b/freemocap/__init__.pyindex 2986e628..859d9d10 100644--- a/freemocap/__init__.py+++ b/freemocap/__init__.py@@ -2,7 +2,7 @@__author__ = """Skelly FreeMoCap"""__email__ = "[email protected]"-__version__ = "v1.0.20-rc"+__version__ = "v1.0.21-rc"__description__ = "A free and open source markerless motion capture system for everyone πβ¨"__package_name__ = "freemocap"@@ -10,15 +10,6 @@ __repo_url__ = f"https://github.com/freemocap/{__package_name__}/"__repo_issues_url__ = f"{__repo_url__}issues"-# if we're running from source, we need to add the parent directory to sys.path-# import sys-# from pathlib import Path--#-# base_package_path = Path(__file__).parent.parent-# print(f"adding base_package_path: {base_package_path} : to sys.path")-# sys.path.insert(0, str(base_package_path)) # add par-from freemocap.system.logging.configure_logging import configure_loggingconfigure_logging()@@ -27,27 +18,3 @@ import logginglogger = logging.getLogger(__name__)logger.info(f"Initializing {__package_name__} package, version: {__version__}, from file: {__file__}")--# breadcrumbs for legacy/deprecated 'pre-alpha` entry point-def RunMe(*args, **kwargs):- logger.info(- "User tried using `pre-alpha` entry point (`import freemocap: freemocap.RunMe() - displaying friendly message then re-directing to `freemocap.__main__:main()` entry point"- )-- print(- "--------------------------------\n"- "--------------------------------\n"- "--------------------------------\n"- "Hello! Looks like you're trying to use the `pre-alpha` entry point for FreeMoCap.\n"- "This entry point is deprecated, so we're launching the GUI via `freemocap.__main__:main()` entry point.\n"- "if you need to install the `pre-alpha` code, use `pip install freemocap==0.0.54`"- "Thank you for using FreeMoCap!\n"- "--------------------------------\n"- "--------------------------------\n"- "(NOTE - this entry point will be removed eventually\n"- "--------------------------------\n"- )-- from freemocap.__main__ import main-- main()diff --git a/freemocap/gui/qt/widgets/home_widget.py b/freemocap/gui/qt/widgets/home_widget.pyindex 4374a5a7..994f7678 100644--- a/freemocap/gui/qt/widgets/home_widget.py+++ b/freemocap/gui/qt/widgets/home_widget.py@@ -23,6 +23,7 @@ from freemocap.gui.qt.actions_and_menus.actions import (Actions,)from freemocap.gui.qt.utilities.save_and_load_gui_state import GuiState, save_gui_state+from freemocap.system.paths_and_filenames.file_and_folder_names import PATH_TO_FREEMOCAP_LOGO_SVGfrom freemocap.system.paths_and_filenames.path_getters import get_gui_state_json_path@@ -91,7 +92,7 @@ class HomeWidget(QWidget):if latest_version is None:version_label_string += " (X)"tooltip_string = " (`new version check` failed!)"- elif latest_version != current_version or True:+ elif latest_version != current_version:version_label_string += " (update available!)"tooltip_string = (f"New version {latest_version} available!\n"diff --git a/pyproject.toml b/pyproject.tomlindex 5275d8c7..e905b40e 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -98,7 +98,7 @@ Documentation = "https://freemocap.readthedocs.io/en/latest/"Github = "https://github.com/freemocap/freemocap"[tool.bumpver]-current_version = "v1.0.20-rc"+current_version = "v1.0.21-rc"version_pattern = "vMAJOR.MINOR.PATCH[-TAG]"commit_message = "Bump version {old_version} -> {new_version}"commit = truediff --git a/src/gui/main/main.py b/src/gui/main/main.pyindex 5aa409f5..e69de29b 100644--- a/src/gui/main/main.py+++ b/src/gui/main/main.py@@ -1,26 +0,0 @@-import logging--logger = logging.getLogger(__name__)--if __name__ == "__main__":- logger.info(- "User tried using `pre-alpha` entry point (`import freemocap: freemocap.RunMe() - displaying friendly message then re-directing to `freemocap.__main__:main()` entry point"- )-- print(- "--------------------------------\n"- "--------------------------------\n"- "--------------------------------\n"- "Hello! Looks like you're trying to use the `alpha GUI` entry point for FreeMoCap.\n"- "This entry point is deprecated, so we're launching the GUI via `freemocap.__main__:main()` entry point.\n"- "If you want use the `alpha GUI` code, use check out the `v0.1.0` tag in the github repo.\n"- "Thank you for using FreeMoCap!\n"- "--------------------------------\n"- "(NOTE - this entry point will be removed eventually\n"- "--------------------------------\n"- "--------------------------------\n"- )-- from freemocap.__main__ import main-- main()