add version
This commit is contained in:
parent
861f2f3f9c
commit
e4e9b1d747
@ -32,6 +32,13 @@ from .batch_converter import BatchConverterTab
|
|||||||
# EditorWindow non viene usato in questo file, ma lo lasciamo per coerenza
|
# EditorWindow non viene usato in questo file, ma lo lasciamo per coerenza
|
||||||
# from .editor import EditorWindow
|
# from .editor import EditorWindow
|
||||||
|
|
||||||
|
try:
|
||||||
|
from markdownconverter import _version as wrapper_version
|
||||||
|
|
||||||
|
WRAPPER_APP_VERSION_STRING = f"{wrapper_version.__version__} ({wrapper_version.GIT_BRANCH}/{wrapper_version.GIT_COMMIT_HASH[:7]})"
|
||||||
|
except ImportError:
|
||||||
|
WRAPPER_APP_VERSION_STRING = "(Dev Wrapper)"
|
||||||
|
|
||||||
log = get_logger(__name__)
|
log = get_logger(__name__)
|
||||||
|
|
||||||
# ... (open_with_default_app, open_output_folder, ProfileManagerWindow sono INVARIATE)
|
# ... (open_with_default_app, open_output_folder, ProfileManagerWindow sono INVARIATE)
|
||||||
@ -64,6 +71,7 @@ def open_output_folder(filepath: str):
|
|||||||
class ProfileManagerWindow(tb.Toplevel):
|
class ProfileManagerWindow(tb.Toplevel):
|
||||||
def __init__(self, parent, config_data, app_instance):
|
def __init__(self, parent, config_data, app_instance):
|
||||||
super().__init__(master=parent, title="Manage Profiles")
|
super().__init__(master=parent, title="Manage Profiles")
|
||||||
|
|
||||||
self.geometry("500x400")
|
self.geometry("500x400")
|
||||||
self.transient(parent)
|
self.transient(parent)
|
||||||
self.config_data = config_data
|
self.config_data = config_data
|
||||||
@ -144,7 +152,8 @@ class ProfileManagerWindow(tb.Toplevel):
|
|||||||
class MarkdownConverterApp:
|
class MarkdownConverterApp:
|
||||||
def __init__(self, root):
|
def __init__(self, root):
|
||||||
self.root = root
|
self.root = root
|
||||||
self.root.title("Markdown Converter")
|
base_title = f"Markdown converter - {WRAPPER_APP_VERSION_STRING}"
|
||||||
|
self.root.title(base_title)
|
||||||
self.root.geometry("900x850")
|
self.root.geometry("900x850")
|
||||||
self._setup_logging()
|
self._setup_logging()
|
||||||
self.config = load_configuration()
|
self.config = load_configuration()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user