Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
Entry point. Run with: python main.py
|
||||
"""
|
||||
import sys
|
||||
|
||||
from PyQt6.QtWidgets import QApplication
|
||||
|
||||
from app import config
|
||||
from app.database import init_db
|
||||
from app.ui.main_window import MainWindow
|
||||
|
||||
|
||||
def main() -> int:
|
||||
config.ensure_env_file_exists()
|
||||
init_db()
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
app.setApplicationName("Order Manager")
|
||||
|
||||
window = MainWindow()
|
||||
window.show()
|
||||
|
||||
return app.exec()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user