26 lines
549 B
Python
26 lines
549 B
Python
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) |