Compare commits

...

2 Commits

Author SHA1 Message Date
3ba041a28e Fix Clear Log Button 2025-06-18 18:36:34 +02:00
a9b6fccbf7 zwischenstand button wird nur als strich angeizeigt 2025-06-18 14:39:33 +02:00
2 changed files with 8 additions and 5 deletions

View File

@ -652,7 +652,7 @@ class LXToolsGUI:
self._create_header()
# Create notebook (tabs)
self.notebook = ttk.Notebook(self.root, height=300)
self.notebook = ttk.Notebook(self.root)
self.notebook.pack(fill="both", expand=True, padx=15, pady=(10, 10))
# Create tabs
@ -966,6 +966,9 @@ class LXToolsGUI:
# Log text with scrollbar
log_container = tk.Frame(log_frame)
log_container.pack(fill="both", expand=True, padx=10, pady=10)
# Important! pack_propagate(False) must be set here to display
# the Clear Log button correctly
log_container.pack_propagate(False)
self.log_text = tk.Text(
log_container,
@ -987,13 +990,13 @@ class LXToolsGUI:
# Log controls
log_controls = tk.Frame(log_frame)
log_controls.pack(fill="x", padx=10, pady=(0, 0))
log_controls.pack(fill="x", padx=10, pady=(5, 0))
# Clear log button
clear_log_btn = ttk.Button(
log_controls, text=LocaleStrings.MSGB["clear_log"], command=self.clear_log
)
clear_log_btn.pack(side="right")
clear_log_btn.pack(side="right", pady=(0, 10))
# Initial log message
self.log_message(
@ -1317,7 +1320,7 @@ class LXToolsGUI:
"""Clear the log"""
if self.log_text:
self.log_text.delete(1.0, tk.END)
self.log_message(MSGL["log_cleared"])
self.log_message(LocaleStrings.MSGL["log_cleared"])
def run(self):
"""Start the GUI application"""

View File

@ -12,7 +12,7 @@ class LXToolsAppConfig:
VERSION = "1.1.5"
APP_NAME = "lxtoolsinstaller"
WINDOW_WIDTH = 450
WINDOW_HEIGHT = 740
WINDOW_HEIGHT = 580
# Working directory
WORK_DIR = os.getcwd()