| import sys | |
| import os | |
| # Add project root to sys.path to ensure imports work | |
| # We want the parent of 'src' (project root) in sys.path so 'import src.xxx' works | |
| current_dir = os.path.dirname(os.path.abspath(__file__)) | |
| project_root = os.path.dirname(current_dir) | |
| sys.path.append(project_root) | |
| from PyQt6.QtWidgets import QApplication | |
| from src.ui.main_window import MainWindow | |
| def main(): | |
| app = QApplication(sys.argv) | |
| # Optional: Set a dark theme/palette here | |
| window = MainWindow() | |
| window.show() | |
| sys.exit(app.exec()) | |
| if __name__ == "__main__": | |
| main() | |