forked from mergeos-bounties/Loru
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
25 lines (18 loc) · 616 Bytes
/
Copy pathapp.py
File metadata and controls
25 lines (18 loc) · 616 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""Entry: loru-gui"""
from __future__ import annotations
import sys
def main(argv: list[str] | None = None) -> int:
try:
from PySide6.QtWidgets import QApplication
except ImportError:
print('Install GUI extras: pip install -e ".[gui]" (needs PySide6)', file=sys.stderr)
return 1
from loru.gui.main_window import MainWindow
app = QApplication(sys.argv if argv is None else argv)
app.setApplicationName("Loru")
app.setOrganizationName("MergeOS")
win = MainWindow()
win.show()
return app.exec()
if __name__ == "__main__":
raise SystemExit(main())