Files
fcco-Converter/main.py
T

37 lines
794 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env python3
"""
fcco-Converter V2 Einstiegspunkt
Startet die grafische Benutzeroberfläche.
"""
import sys
import platform
import io
# Behebe NoneType 'write' Fehler in windowed GUI-Modus (PyInstaller --windowed auf Windows/macOS)
if sys.stdout is None:
sys.stdout = io.StringIO()
if sys.stderr is None:
sys.stderr = io.StringIO()
# DPI-Awareness auf Windows setzen (vor dem GUI-Import)
if platform.system() == "Windows":
try:
import ctypes
ctypes.windll.shcore.SetProcessDpiAwareness(2)
except Exception:
try:
ctypes.windll.user32.SetProcessDPIAware()
except Exception:
pass
def main():
from fcco_converter.gui import App
app = App()
app.mainloop()
if __name__ == "__main__":
main()