Topic locked

Python, amarok, dbus

matio
Registered Member
Posts
1
Karma
0

Python, amarok, dbus

Fri Mar 13, 2009 4:46 pm
How do you use dbus with amorok in python? I'm trying to do this:
dbus-send --type=method_call --dest=org.kde.amarok /Player org.freedesktop.MediaPlayer.Next
only in python
thomas.dub
Registered Member
Posts
14
Karma
0

Re: Python, amarok, dbus

Tue Sep 01, 2009 11:29 pm
Hy,

I've adapted a python script to work with DBUS in place of DCOP.

Code: Select all
import dbus
am = dbus.SessionBus().get_object('org.kde.amarok','/Player')
am.Play()
am.Pause()
etc..


You can find all DBUS functions with this command :
qdbus org.kde.amarok /Player

Good Luck

 
Topic locked

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], boudewijn, edouard_le_homard, Exabot [Bot], Google [Bot], ifukcvrtc, johnlockett, ksedding, Majestic-12 [Bot], ptfpkofg, Sogou [Bot], TheraHedwig, Yahoo [Bot]