hamyar_paygah.main

Application entry point for Hamyar Paygah.

This module contains the startup routine for the application. It ensures that the EMS server address is loaded from disk or provided by the user before launching the main Qt window.

Attributes

Functions

main(app)

Asynchronous entry point for the Qt application.

Module Contents

async hamyar_paygah.main.main(app)

Asynchronous entry point for the Qt application.

This function integrates Qt’s application lifecycle with Python’s asyncio event loop. It establishes a synchronization mechanism that allows asynchronous tasks to detect when the Qt application is about to shut down and perform a graceful cleanup.

The function is designed to run inside an asyncio-compatible event loop (e.g., qasync.QEventLoop), enabling seamless cooperation between Qt’s event-driven architecture and asyncio’s coroutine-based concurrency model.

Parameters:

app (PySide6.QtWidgets.QApplication) – The active Qt application instance whose lifecycle is monitored for shutdown events.

Return type:

None

hamyar_paygah.main.main_app