Loading files
c8c16169eThis file is pinned to the selected release. Download the original to open it in your design tool.
import sys
from PyQt6.QtWidgets import QApplication
from main_window import MainWindow
from simulation import Simulation
def main() -> None:
"""
Entry point for the application. Initializes the PyQt application,
sets up the simulation and main window, and starts the event loop.
"""
app: QApplication = QApplication(sys.argv)
simulation: Simulation = Simulation()
window: MainWindow = MainWindow(simulation)
window.show()
# Trigger an initial hardware display update
window.update_display()
# Start the application's event loop
sys.exit(app.exec())
if __name__ == "__main__":
main()