Spaces:
Running
Running
| import sys | |
| import os | |
| from pathlib import Path | |
| # Dodaj katalog lib do ścieżki | |
| lib_path = Path(__file__).parent / "lib" | |
| if lib_path.exists(): | |
| sys.path.insert(0, str(lib_path)) | |
| from PySide6.QtWidgets import QApplication | |
| from PySide6.QtCore import Qt | |
| from ui.main_window import MainWindow | |
| if __name__ == "__main__": | |
| # High DPI support | |
| if hasattr(Qt, 'AA_EnableHighDpiScaling'): | |
| QApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True) | |
| if hasattr(Qt, 'AA_UseHighDpiPixmaps'): | |
| QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps, True) | |
| app = QApplication(sys.argv) | |
| app.setApplicationName("StreamFlow IPTV") | |
| app.setApplicationVersion("1.0.0") | |
| app.setOrganizationName("StreamFlow") | |
| window = MainWindow() | |
| sys.exit(app.exec()) |