from mpris2 import Player
p1 = Player(dbus_interface_info={'dbus_uri': "org.mpris.MediaPlayer2.parole"})
p2 = Player(dbus_interface_info={'dbus_uri': "org.mpris.MediaPlayer2.clementine"})
p2.PlayPause() # controls parole not clementine
DbusInterface and DbusMethod are only called once when the class object is created and the same instances of DbusInterface and DbusMethod are used for all instances of Player.
Problem:
DbusInterface
andDbusMethod
are only called once when the class object is created and the same instances ofDbusInterface
andDbusMethod
are used for all instances ofPlayer
.