Add main application logic, UI components, and logging setup
This commit is contained in:
26
main.py
Normal file
26
main.py
Normal file
@@ -0,0 +1,26 @@
|
||||
import sys
|
||||
|
||||
from Widget.main_window import MyWidget
|
||||
from core.config import DATA_DIR
|
||||
from core.logger import start_logger
|
||||
import core.logger as L
|
||||
|
||||
from PySide6 import QtWidgets
|
||||
|
||||
|
||||
start_logger(DATA_DIR, "logs")
|
||||
L.info("Aplicación arrancada")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
app = QtWidgets.QApplication([])
|
||||
|
||||
widget = MyWidget()
|
||||
widget.resize(800, 600)
|
||||
widget.show()
|
||||
|
||||
sys.exit(app.exec())
|
||||
pass
|
||||
except Exception as e:
|
||||
L.error("Ocurrió un error inesperado: %s", str(e), exc_info=True)
|
||||
Reference in New Issue
Block a user