From a76c9f58e33b78bcd8a13e1d93dbbd1abcc819b9 Mon Sep 17 00:00:00 2001 From: StuSerious Date: Tue, 6 Jun 2023 09:02:21 +0200 Subject: [PATCH] chore: bump release version --- src/threedy/interface/sidebar.py | 30 +++++++++++++++++++++++++----- src/threedy/main.py | 2 +- src/threedy/modules/settings.py | 3 +++ 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/threedy/interface/sidebar.py b/src/threedy/interface/sidebar.py index 6352eaf..a17ecfb 100644 --- a/src/threedy/interface/sidebar.py +++ b/src/threedy/interface/sidebar.py @@ -21,7 +21,27 @@ def __init__(self, parent, import_event, export_event, **kwargs): text="threedy", font=ctk.CTkFont(family=FONT, size=35, weight="bold"), ) - self.logo_label.grid(row=0, column=0, padx=PADDING["large"], pady=(20, 10)) + self.logo_label.grid( + row=0, + column=0, + padx=PADDING["large"], + pady=(20, 0), + ) + # version text + self.version_label = ctk.CTkLabel( + self, + text=f"version {VERSION}", + font=ctk.CTkFont(family=FONT, size=8, slant="italic"), + bg_color="transparent", + fg_color="transparent", + ) + self.version_label.grid( + row=1, + column=0, + padx=(0, 0), + pady=(0, 20), + sticky="n", + ) # select file button self.select_file_button = ctk.CTkButton( @@ -31,12 +51,11 @@ def __init__(self, parent, import_event, export_event, **kwargs): command=self.select_file, ) self.select_file_button.grid( - row=1, + row=2, column=0, padx=PADDING["medium"], pady=10, ) - # export file button self.export_file_button = ctk.CTkButton( self, @@ -45,7 +64,7 @@ def __init__(self, parent, import_event, export_event, **kwargs): command=self.export_file, ) self.export_file_button.grid( - row=2, + row=3, column=0, padx=PADDING["medium"], pady=10, @@ -64,7 +83,6 @@ def __init__(self, parent, import_event, export_event, **kwargs): self.select_theme_optionmenu.grid( row=6, column=0, padx=PADDING["medium"], pady=(0, 10) ) - # scaling selector self.scaling_factor_label = ctk.CTkLabel(self, text="UI Scaling:", anchor="w") self.scaling_factor_label.grid(row=7, column=0, padx=PADDING["medium"], pady=0) @@ -77,6 +95,8 @@ def __init__(self, parent, import_event, export_event, **kwargs): row=8, column=0, padx=PADDING["medium"], pady=(0, 10) ) + # TODO: settings dialog + # select and load file def select_file(self): self.import_event() diff --git a/src/threedy/main.py b/src/threedy/main.py index 044fabb..1465f6d 100644 --- a/src/threedy/main.py +++ b/src/threedy/main.py @@ -25,7 +25,7 @@ def __init__(self): # setup window self.geometry(f"{APP_SIZE['width']}x{APP_SIZE['height']}") self.iconbitmap(resource_path("resources\\logo.ico")) - self.title("threedy") + self.title(f"threedy {VERSION}") # setup grid self.grid_rowconfigure(0, weight=1) diff --git a/src/threedy/modules/settings.py b/src/threedy/modules/settings.py index a653696..37cbb77 100644 --- a/src/threedy/modules/settings.py +++ b/src/threedy/modules/settings.py @@ -1,3 +1,6 @@ +# app info +VERSION = "0.1.0-alpha.4" + # size APP_SIZE = {"width": 900, "height": 500}