Compare commits
2 Commits
5740b22583
...
3ba041a28e
Author | SHA1 | Date | |
---|---|---|---|
3ba041a28e | |||
a9b6fccbf7 |
@ -652,7 +652,7 @@ class LXToolsGUI:
|
|||||||
self._create_header()
|
self._create_header()
|
||||||
|
|
||||||
# Create notebook (tabs)
|
# 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))
|
self.notebook.pack(fill="both", expand=True, padx=15, pady=(10, 10))
|
||||||
|
|
||||||
# Create tabs
|
# Create tabs
|
||||||
@ -966,6 +966,9 @@ class LXToolsGUI:
|
|||||||
# Log text with scrollbar
|
# Log text with scrollbar
|
||||||
log_container = tk.Frame(log_frame)
|
log_container = tk.Frame(log_frame)
|
||||||
log_container.pack(fill="both", expand=True, padx=10, pady=10)
|
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(
|
self.log_text = tk.Text(
|
||||||
log_container,
|
log_container,
|
||||||
@ -987,13 +990,13 @@ class LXToolsGUI:
|
|||||||
|
|
||||||
# Log controls
|
# Log controls
|
||||||
log_controls = tk.Frame(log_frame)
|
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 button
|
||||||
clear_log_btn = ttk.Button(
|
clear_log_btn = ttk.Button(
|
||||||
log_controls, text=LocaleStrings.MSGB["clear_log"], command=self.clear_log
|
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
|
# Initial log message
|
||||||
self.log_message(
|
self.log_message(
|
||||||
@ -1317,7 +1320,7 @@ class LXToolsGUI:
|
|||||||
"""Clear the log"""
|
"""Clear the log"""
|
||||||
if self.log_text:
|
if self.log_text:
|
||||||
self.log_text.delete(1.0, tk.END)
|
self.log_text.delete(1.0, tk.END)
|
||||||
self.log_message(MSGL["log_cleared"])
|
self.log_message(LocaleStrings.MSGL["log_cleared"])
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""Start the GUI application"""
|
"""Start the GUI application"""
|
||||||
|
@ -12,7 +12,7 @@ class LXToolsAppConfig:
|
|||||||
VERSION = "1.1.5"
|
VERSION = "1.1.5"
|
||||||
APP_NAME = "lxtoolsinstaller"
|
APP_NAME = "lxtoolsinstaller"
|
||||||
WINDOW_WIDTH = 450
|
WINDOW_WIDTH = 450
|
||||||
WINDOW_HEIGHT = 740
|
WINDOW_HEIGHT = 580
|
||||||
|
|
||||||
# Working directory
|
# Working directory
|
||||||
WORK_DIR = os.getcwd()
|
WORK_DIR = os.getcwd()
|
||||||
|
Reference in New Issue
Block a user