def delete_thyself(self):
     for field, _ in self.func.items():  
         key = config.get("plugins", field, "")
         if key:
             self.__try_unbind(key)
         
     GenericPlugin.delete_thyself(self)
    def __init__(self):
        GenericPlugin.__init__(self)
        
        self.autoconnect(config, "config-changed", self.__on_config_changed)

        for (field, _) in self.func.items():
            key = config.get("plugins", field, "")
            if key:
                self.__bind(key, field)
                
            config.set("plugins", "%s_last" % field, key)
Esempio n. 3
0
    def __init__(self):
        GenericPlugin.__init__(self)

        self.pidFile = "/tmp/.g15music.pid"

        self.__lastsong = None

        self.autoconnect(Player, "new-song", self.on_new_song)

        self.on_new_song(Player, Player.song)
        gtk.quit_add(0, self.resetScreen)