aboutsummaryrefslogtreecommitdiffstats
path: root/hyprsunset_qt/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'hyprsunset_qt/__main__.py')
-rw-r--r--hyprsunset_qt/__main__.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/hyprsunset_qt/__main__.py b/hyprsunset_qt/__main__.py
new file mode 100644
index 0000000..31810ae
--- /dev/null
+++ b/hyprsunset_qt/__main__.py
@@ -0,0 +1,19 @@
+"""Entry point for hyprsunset-qt."""
+
+import sys
+
+from PyQt6.QtWidgets import QApplication
+
+from .ui import MainWindow
+
+
+def main() -> int:
+ app = QApplication(sys.argv)
+ win = MainWindow()
+ win.resize(640, 400)
+ win.show()
+ return app.exec()
+
+
+if __name__ == "__main__":
+ sys.exit(main())