pastabowl

monitor

Nov 5th, 2025 (edited)
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | Source Code | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. from PyQt6.QtWidgets import QApplication, QWidget
  4.  
  5. from DBusMedia import MPRISMonitor
  6. from MediaUi import MediaWindow
  7.  
  8. import sys
  9.  
  10.  
  11. class LyricistApp(QApplication):
  12.     def __init__(self, argv: list[str]):
  13.         super().__init__(argv)
  14.  
  15.         self.monitor: MPRISMonitor = MPRISMonitor()
  16.  
  17.         self.win: MediaWindow = MediaWindow()
  18.         self.win.show()
  19.  
  20.  
  21. # --- Initialize Qt application (no GUI) ---
  22. app = LyricistApp(sys.argv)
  23.  
  24. # --- Run ---
  25. try:
  26.     sys.exit(app.exec())
  27. except KeyboardInterrupt:
  28.     exit(144)
  29.  
Tags: music
Advertisement
Add Comment
Please, Sign In to add comment