from __future__ import annotations

import sys
from PyQt6.QtWidgets import QApplication
from .ui.main_window import MainWindow


def main() -> int:
    app = QApplication(sys.argv)
    app.setApplicationName("Whiscribe")
    app.setOrganizationName("Whiscribe")
    app.setOrganizationDomain("example.local")

    win = MainWindow()
    win.show()
    return app.exec()


if __name__ == "__main__":
    raise SystemExit(main())
