View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#21
Have a look at the MediaButtonsHandler here:

https://github.com/gpodder/gpodder/b...mlui/helper.py

You can even remove all the Qt stuff around it, and just use the "dbus" module (be sure to use a GLib or Qt main loop though, as you are connecting to signals).

HTH
 

The Following 2 Users Say Thank You to thp For This Useful Post: