Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- from PyQt6.QtWidgets import QApplication, QWidget
- from DBusMedia import MPRISMonitor
- from MediaUi import MediaWindow
- import sys
- class LyricistApp(QApplication):
- def __init__(self, argv: list[str]):
- super().__init__(argv)
- self.monitor: MPRISMonitor = MPRISMonitor()
- self.win: MediaWindow = MediaWindow()
- self.win.show()
- # --- Initialize Qt application (no GUI) ---
- app = LyricistApp(sys.argv)
- # --- Run ---
- try:
- sys.exit(app.exec())
- except KeyboardInterrupt:
- exit(144)
Advertisement
Add Comment
Please, Sign In to add comment