caddfc68fb
- CLAUDE.md: Deutsche Sprachanweisung am Anfang hinzugefügt - src/main.py: Auskommentierten qdarktheme Code entfernt (Import und Setup) - Verbessert Code-Qualität durch Entfernen von totem Code 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
39 lines
916 B
Python
39 lines
916 B
Python
import sys
|
|
|
|
from PySide6.QtWidgets import QApplication
|
|
|
|
from ui.MainWindow import MainWindow
|
|
from ui.AppSettings import AppSettingsDlg
|
|
from conf import app_settings
|
|
|
|
|
|
def main():
|
|
"""Haupteinstiegspunkt der Anwendung."""
|
|
# QApplication-Instanz erstellen
|
|
app = QApplication(sys.argv)
|
|
|
|
# Hauptfenster erstellen
|
|
window = MainWindow()
|
|
|
|
# Hauptfenster anzeigen
|
|
window.show()
|
|
|
|
if (
|
|
len(app_settings.apache_fops) == 0
|
|
or len(app_settings.diff_pdfs) == 0
|
|
or len(app_settings.java_vms) == 0
|
|
or len(app_settings.saxon_jars) == 0
|
|
or len(app_settings.xsl_dirs) == 0
|
|
or len(app_settings.pdf_projects) == 0
|
|
):
|
|
# Als Modal Dialog öffnen!
|
|
dlg = AppSettingsDlg(window, app_settings)
|
|
dlg.exec()
|
|
|
|
# Anwendung ausführen und Rückgabewert zurückgeben
|
|
return app.exec()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|