update profile win dimension

This commit is contained in:
VALLONGOL 2025-09-25 08:49:13 +02:00
parent 1740024f56
commit c4ce023cb8
6 changed files with 30 additions and 27 deletions

View File

@ -6,10 +6,10 @@
import re
# --- Version Data (Generated) ---
__version__ = "v.1.0.0.2-2-g4c18774-dirty"
GIT_COMMIT_HASH = "4c187747c13599290e692c027a93f327288fc68d"
__version__ = "v.1.0.0.2-1-ga4d6c04"
GIT_COMMIT_HASH = "a4d6c043e67f3e7a8c5dd092643b595c28dbe25b"
GIT_BRANCH = "master"
BUILD_TIMESTAMP = "2025-09-23T12:55:03.035782+00:00"
BUILD_TIMESTAMP = "2025-06-13T13:57:33.708395+00:00"
IS_GIT_REPO = True
# --- Default Values (for comparison or fallback) ---

View File

@ -80,7 +80,7 @@ class ProfileManagerWindow(tk.Toplevel):
# Per ora, usiamo una dimensione fissa come nel tuo codice originale
window_width = 1050
window_height = 900
window_height = 850
self.parent_window.update_idletasks()
parent_x = self.parent_window.winfo_x()
@ -349,14 +349,12 @@ class ProfileManagerWindow(tk.Toplevel):
right_pane, text="Analyzed Symbols Summary", padding="10"
)
symbols_summary_frame.grid(row=2, column=0, sticky="new", pady=5)
symbols_summary_frame.columnconfigure(0, weight=1)
symbols_summary_frame.columnconfigure(1, weight=0)
symbols_summary_frame.columnconfigure(2, weight=1)
symbols_summary_frame.columnconfigure(3, weight=0)
symbols_summary_frame.columnconfigure(0, weight=1) # Label si espande
symbols_summary_frame.columnconfigure(1, weight=0) # Bottone fisso
# Row 0: Functions and Globals
row_s = 0
ttk.Label(symbols_summary_frame, textvariable=self.functions_count_var).grid(
row=0, column=0, sticky="w", padx=5, pady=2
row=row_s, column=0, sticky="w", padx=5, pady=2
)
self.view_functions_button = ttk.Button(
symbols_summary_frame,
@ -365,10 +363,12 @@ class ProfileManagerWindow(tk.Toplevel):
state=tk.DISABLED,
width=8,
)
self.view_functions_button.grid(row=0, column=1, padx=(5, 10), pady=2)
self.view_functions_button.grid(
row=row_s, column=1, padx=(10, 5), pady=2, sticky="w"
)
row_s += 1
ttk.Label(symbols_summary_frame, textvariable=self.variables_count_var).grid(
row=0, column=2, sticky="w", padx=5, pady=2
row=row_s, column=0, sticky="w", padx=5, pady=2
)
self.view_variables_button = ttk.Button(
symbols_summary_frame,
@ -377,11 +377,12 @@ class ProfileManagerWindow(tk.Toplevel):
state=tk.DISABLED,
width=8,
)
self.view_variables_button.grid(row=0, column=3, padx=(5, 10), pady=2)
# Row 1: Types and Sources
self.view_variables_button.grid(
row=row_s, column=1, padx=(10, 5), pady=2, sticky="w"
)
row_s += 1
ttk.Label(symbols_summary_frame, textvariable=self.types_count_var).grid(
row=1, column=0, sticky="w", padx=5, pady=2
row=row_s, column=0, sticky="w", padx=5, pady=2
)
self.view_types_button = ttk.Button(
symbols_summary_frame,
@ -390,10 +391,12 @@ class ProfileManagerWindow(tk.Toplevel):
state=tk.DISABLED,
width=8,
)
self.view_types_button.grid(row=1, column=1, padx=(5, 10), pady=2)
self.view_types_button.grid(
row=row_s, column=1, padx=(10, 5), pady=2, sticky="w"
)
row_s += 1
ttk.Label(symbols_summary_frame, textvariable=self.sources_count_var).grid(
row=1, column=2, sticky="w", padx=5, pady=2
row=row_s, column=0, sticky="w", padx=5, pady=2
)
self.view_sources_button = ttk.Button(
symbols_summary_frame,
@ -402,7 +405,10 @@ class ProfileManagerWindow(tk.Toplevel):
state=tk.DISABLED,
width=8,
)
self.view_sources_button.grid(row=1, column=3, padx=(5, 10), pady=2)
self.view_sources_button.grid(
row=row_s, column=1, padx=(10, 5), pady=2, sticky="w"
)
# row_s += 1 # Non necessario se è l'ultimo
# Debug Actions UI
actions_ui_frame = ttk.LabelFrame(
@ -417,7 +423,7 @@ class ProfileManagerWindow(tk.Toplevel):
actions_ui_frame.columnconfigure(2, weight=0) # Bottoni laterali
self.actions_listbox = tk.Listbox(
actions_ui_frame, exportselection=False, selectmode=tk.SINGLE, height=10
actions_ui_frame, exportselection=False, selectmode=tk.SINGLE, height=6
)
self.actions_listbox.grid(
row=0, column=0, sticky="nsew", pady=5, padx=(0, 5)
@ -1401,8 +1407,7 @@ class ProfileManagerWindow(tk.Toplevel):
self._update_analysis_status_display()
def _get_symbols_for_display(
self,
category: str
self, category: str
) -> List[Union[str, Dict[str, Any]]]:
# (Implementazione come prima)
if self._selected_profile_index is None or not (
@ -1450,9 +1455,7 @@ class ProfileManagerWindow(tk.Toplevel):
self._show_symbol_list_dialog("Source Files", source_files_list)
def _show_symbol_list_dialog(
self,
symbol_type: str,
symbols: List[Union[str, Dict[str, Any]]],
self, symbol_type: str, symbols: List[Union[str, Dict[str, Any]]]
) -> None:
# (Implementazione come prima, ma assicurati che file_utils sia importato per calculate_file_checksum)
if self._selected_profile_index is None:

BIN
doc/English-manual.docx Normal file

Binary file not shown.

BIN
doc/English-manual.pdf Normal file

Binary file not shown.

BIN
doc/Italian-manual.docx Normal file

Binary file not shown.

BIN
doc/Italian-manual.pdf Normal file

Binary file not shown.