diff --git a/lxtools_installerv3.py b/lxtools_installerv3.py index 35c22fb..7cdfc20 100755 --- a/lxtools_installerv3.py +++ b/lxtools_installerv3.py @@ -1,5 +1,4 @@ #!/usr/bin/python3 -################### Teil 1 - Imports und Basis-Konfiguration ################### import gettext import locale import tkinter as tk @@ -17,7 +16,6 @@ from pathlib import Path from datetime import datetime -################### Teil 2 - LXTools App Configuration ################### class LXToolsAppConfig: VERSION = "1.1.3" APP_NAME = "LX Tools Installer" @@ -124,9 +122,6 @@ class LXToolsAppConfig: _ = LXToolsAppConfig.setup_translations() -# ---------------------------- -# Color Manager Class (NEU für einheitliche Farben) -# ---------------------------- class ColorManager: @staticmethod def get_system_colors(root): @@ -173,9 +168,6 @@ class ColorManager: } -# ---------------------------- -# Theme Manager Class -# ---------------------------- class ThemeManager: @staticmethod def apply_light_theme(root): @@ -207,7 +199,6 @@ class ThemeManager: return False -################### Teil 3 - OS Detection und System Manager ################### class OSDetector: @staticmethod def detect_os(): @@ -319,7 +310,6 @@ class SystemManager: return False -################### Teil 4 - Image Manager und Gitea API ################### class ImageManager: def __init__(self): self.images = {} @@ -416,7 +406,6 @@ class NetworkChecker: return False -################### Teil 5 - Download Manager ################### class DownloadManager: @staticmethod def download_and_extract(url, extract_to, progress_callback=None): @@ -443,7 +432,6 @@ class DownloadManager: return False -################### Teil 6 - App Manager ################### class AppManager: def __init__(self): self.projects = LXToolsAppConfig.PROJECTS @@ -539,7 +527,6 @@ class AppManager: ) -################### Teil 7 - Installation Manager ################### class InstallationManager: def __init__( self, app_manager, progress_callback=None, icon_callback=None, log_callback=None @@ -695,7 +682,6 @@ echo "Wire-Py installation completed!" """ return script - ################### Teil 8 - Installation Manager LogViewer Script ################### def _create_logviewer_install_script(self): """Create LogViewer installation script""" script = f"""#!/bin/bash @@ -841,7 +827,6 @@ echo "LogViewer installation completed!" self.log_callback(message) -################### Teil 9 - Uninstallation Manager ################### class UninstallationManager: def __init__(self, app_manager, progress_callback=None, log_callback=None): self.app_manager = app_manager @@ -1005,7 +990,6 @@ echo "LogViewer uninstallation completed!" """ return script - ################### Teil 10 - Uninstallation Manager Helper Methods ################### def _execute_uninstall_script(self, script_content): """Execute uninstallation script with pkexec""" try: @@ -1053,7 +1037,6 @@ echo "LogViewer uninstallation completed!" self.log_callback(message) -################### Teil 11 - LXToolsGUI Klasse (Hauptklasse) ################### class LXToolsGUI: def __init__(self): self.root = None @@ -1219,7 +1202,6 @@ class LXToolsGUI: else: self.update_header_status("System checking...", "#3498db") # Blau - ################### Teil 12 - GUI Projects Tab ################### def _create_projects_tab(self): """Create projects tab with project cards""" projects_frame = ttk.Frame(self.notebook) @@ -1358,7 +1340,6 @@ class LXToolsGUI: # Make icon clickable too self._make_clickable(icon_label, content_frame, project_key) - ################### Teil 13 - GUI Card Interaction Methods ################### def _make_clickable(self, widget, main_frame, project_key): """Make widget clickable with hover effects""" @@ -1417,7 +1398,6 @@ class LXToolsGUI: project_info = self.app_manager.get_project_info(project_key) self.log_message(f"Selected project: {project_info['name']}") - ################### Teil 14 - GUI Log Tab und Progress Section ################### def _create_log_tab(self): """Create log tab""" log_frame = ttk.Frame(self.notebook) @@ -1490,7 +1470,6 @@ class LXToolsGUI: # Initial icon load (neutral) self._reset_download_icon() - ################### Teil 15 - GUI Buttons and Icon Management ################### def _create_modern_buttons(self): """Create modern styled buttons""" button_frame = tk.Frame(self.root, bg=self.colors["bg"]) @@ -1590,7 +1569,6 @@ class LXToolsGUI: else: self.download_icon_label.config(text="📥", font=("Helvetica", 16)) - ################### Teil 16 - GUI Status Management ################### def refresh_status(self): """Refresh application status and version information""" self.update_progress("Refreshing status and checking versions...") @@ -1666,7 +1644,6 @@ class LXToolsGUI: self.log_message("=== Status refresh completed ===") self.check_ready_status() - ################### Teil 17 - GUI Action Methods ################### def install_selected(self): """Handle install button click""" if not self.selected_project: @@ -1766,7 +1743,6 @@ class LXToolsGUI: messagebox.showerror("Error", f"Uninstallation failed: {e}") self.root.focus_set() - ################### Teil 18 - GUI Helper Methods ################### def update_progress(self, message): """Update progress message""" if self.progress_label: @@ -1796,7 +1772,6 @@ class LXToolsGUI: root.mainloop() -################### Teil 19 - TKinter Check und Main Function ################### def check_and_install_tkinter(): """Check if tkinter is available and install if needed""" if not OSDetector.check_tkinter_available():