accept cli args
This commit is contained in:
@@ -3,10 +3,11 @@ from factum.config import settings
|
|||||||
from factum.services.db_service import DBService
|
from factum.services.db_service import DBService
|
||||||
from factum.ui.main_window import FactumWindow
|
from factum.ui.main_window import FactumWindow
|
||||||
from PySide6.QtWidgets import QApplication
|
from PySide6.QtWidgets import QApplication
|
||||||
|
import sys
|
||||||
|
|
||||||
class FactumApp:
|
class FactumApp:
|
||||||
def __init__(self, db_service: DBService):
|
def __init__(self, db_service: DBService):
|
||||||
self.app = QApplication([])
|
self.app = QApplication(sys.argv)
|
||||||
self.main_window = FactumWindow(db_service)
|
self.main_window = FactumWindow(db_service)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user