def __init__(self, *args): SongsMenuPlugin.__init__(self, *args) bus = dbus.SessionBus() sim = bus.get_object( 'org.autoqueue', '/org/autoqueue/Similarity') self.similarity = dbus.Interface( sim, dbus_interface='org.autoqueue.SimilarityInterface')
def __init__(self, songs=None, library=None): SongsMenuPlugin.__init__(self, songs, library) EventPlugin.__init__(self)
def __init__(self, *args): SongsMenuPlugin.__init__(self, *args) bus = dbus.SessionBus() sim = bus.get_object('org.autoqueue', '/org/autoqueue/Similarity') self.similarity = dbus.Interface( sim, dbus_interface='org.autoqueue.SimilarityInterface')