Did I find the right examples for you? yes no

All Samples(30)  |  Call(30)  |  Derive(0)  |  Import(0)

src/f/r/freeseer-HEAD/src/freeseer/plugins/audioinput/jackaudiosrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.client = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Client")
            self.connect = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Connect")
            self.server = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Server")
            self.clientname = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "ClientName")
        except (configparser.NoSectionError, configparser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Client", self.client)

src/f/r/freeseer-3.0.1/freeseer/plugins/audioinput/jackaudiosrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.client = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Client")
            self.connect = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Connect")
            self.server = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Server")
            self.clientname = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "ClientName")
        except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Client", self.client)

src/f/r/freeseer-HEAD/src/freeseer/plugins/audioinput/pulsesrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.source = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), 'Source')
        except (configparser.NoSectionError, configparser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), 'Source', self.source)
    def set_source(self, index):
        self.source = self.widget.source_combobox.itemData(index).toString()
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), 'Source', self.source)
        self.plugman.save()
        log.debug('Set pulseaudio source to %s' % self.source)

src/f/r/freeseer-3.0.1/freeseer/plugins/audioinput/pulsesrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.source = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), 'Source')
        except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), 'Source', self.source)
    def set_source(self, index):
        self.source = self.widget.source_combobox.itemData(index).toString()
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), 'Source', self.source)
        self.plugman.save()
        log.debug('Set pulseaudio source to %s' % self.source)