From e77054ba76b768bc8090981bd4e31c671e13efa0 Mon Sep 17 00:00:00 2001 From: bartool Date: Fri, 6 Mar 2026 19:26:54 +0100 Subject: [PATCH] feat: add main.py entry point --- main.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..a350414 --- /dev/null +++ b/main.py @@ -0,0 +1,19 @@ +from logger import logger +from tray_app import TrayApp + +class Application: + def __init__(self): + logger.info("Application starting...") + self.tray_app = TrayApp() + + def run(self): + try: + self.tray_app.run() + except KeyboardInterrupt: + logger.info("Application stopped by user.") + except Exception as e: + logger.error(f"Application error: {e}") + +if __name__ == "__main__": + app = Application() + app.run()