37 Zeilen
1.0 KiB
Python
37 Zeilen
1.0 KiB
Python
import sys
|
|
import os
|
|
from PyQt6.QtWidgets import QApplication
|
|
from PyQt6.QtGui import QIcon, QFontDatabase
|
|
from PyQt6.QtCore import Qt
|
|
|
|
# Füge src zum Python-Pfad hinzu
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
|
|
|
|
from ui.main_window import WebsiteCrawlerWindow
|
|
|
|
|
|
def main():
|
|
# High DPI Support
|
|
if hasattr(Qt.HighDpiScaleFactorRoundingPolicy, 'PassThrough'):
|
|
QApplication.setHighDpiScaleFactorRoundingPolicy(
|
|
Qt.HighDpiScaleFactorRoundingPolicy.PassThrough
|
|
)
|
|
|
|
app = QApplication(sys.argv)
|
|
app.setApplicationName("IntelSight Webseiten-Crawler")
|
|
app.setOrganizationName("IntelSight")
|
|
|
|
# Setze App-Icon wenn vorhanden
|
|
icon_path = os.path.join(os.path.dirname(__file__), 'src', 'resources', 'icons', 'globe.svg')
|
|
if os.path.exists(icon_path):
|
|
app.setWindowIcon(QIcon(icon_path))
|
|
|
|
# Hauptfenster erstellen und anzeigen
|
|
window = WebsiteCrawlerWindow()
|
|
window.show()
|
|
|
|
sys.exit(app.exec())
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main() |