-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (24 loc) · 879 Bytes
/
main.py
File metadata and controls
33 lines (24 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from PySide6.QtWidgets import QApplication
import sys
from utils.Logger import logger
from UI.AppStartup import AppStartup
APP_NAME = "StaTube"
APP_VERSION = "0.4.4"
APP_PUBLISHER = "StaTube"
APP_DESCRIPTION = "A Python PySide6 GUI app for analyzing YouTube video transcripts and comments."
def main():
logger.info("=== StaTube Boot Process 1: Application starting ===")
try:
app = QApplication(sys.argv)
logger.debug("Launching AppStartup (Splash First)...")
startup = AppStartup()
logger.info("Entering Qt event loop...")
sys.exit(app.exec())
except KeyboardInterrupt:
logger.warning("Interrupted by user, exiting...")
except Exception:
logger.exception("Unhandled exception in main()")
finally:
logger.info("StaTube application shutting down.")
if __name__ == "__main__":
main()