Did I find the right examples for you? yes no

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

src/f/r/freeseer-HEAD/src/freeseer/plugins/videoinput/desktop/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.desktop = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Desktop")
            self.screen = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Screen")
            self.window = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Window")
            self.start_x = int(self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "start_x"))
            self.start_y = int(self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "start_y"))

src/f/r/freeseer-3.0.1/freeseer/plugins/videoinput/desktop/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.desktop = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Desktop")
            self.screen = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Screen")
            self.window = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Window")
            self.start_x = int(self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "start_x"))
            self.start_y = int(self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "start_y"))

src/f/r/freeseer-HEAD/src/freeseer/plugins/videoinput/firewiresrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.device = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device")
        except (configparser.NoSectionError, configparser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device", self.device)
    def set_device(self, device):
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device", device)
 
    ###
    ### Translations

src/f/r/freeseer-3.0.1/freeseer/plugins/videoinput/firewiresrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.device = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device")
        except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device", self.device)
    def set_device(self, device):
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device", device)
 
    ###
    ### Translations

src/f/r/freeseer-HEAD/src/freeseer/plugins/videoinput/usbsrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.device = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device")
        except (configparser.NoSectionError, configparser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device", self.device)
    def set_device(self, device):
        devname = self.widget.devicesCombobox.itemData(device).toString()
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device", devname)
 
    ###

src/f/r/freeseer-3.0.1/freeseer/plugins/videoinput/usbsrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            self.device = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device")
        except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device", self.device)
    def set_device(self, device):
        devname = self.widget.devicesCombobox.itemData(device).toString()
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Video Device", devname)
 
    ###

src/f/r/freeseer-HEAD/src/freeseer/plugins/videoinput/videotestsrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            live = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Live")
            if live == "True":
                self.live = True
            self.pattern = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Pattern")
        except (configparser.NoSectionError, configparser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Live", self.live)
        except (configparser.NoSectionError, configparser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Live", self.live)
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Pattern", self.pattern)
        except TypeError:
            # Temp fix for issue where reading checkbox the 2nd time causes TypeError.
    def set_live(self, checked):
        self.live = checked
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Live", self.live)
 
    def set_pattern(self, pattern):

src/f/r/freeseer-3.0.1/freeseer/plugins/videoinput/videotestsrc/__init__.py   freeseer(Download)
    def load_config(self, plugman):
        self.plugman = plugman
 
        try:
            live = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Live")
            if live == "True": self.live = True
            self.pattern = self.plugman.get_plugin_option(self.CATEGORY, self.get_config_name(), "Pattern")
        except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Live", self.live)
            self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Pattern", self.pattern)
    def set_live(self, checked):
        self.live = checked
        self.plugman.set_plugin_option(self.CATEGORY, self.get_config_name(), "Live", self.live)
 
    def set_pattern(self, pattern):