def __init__(self, parent=None): supported_encodings = self.get_option('supported_encodings') search_path = self.get_option('search_path', None) self.search_text_samples = self.get_option('search_text_samples') search_text = self.get_option('search_text') search_text = [txt for txt in search_text \ if txt not in self.search_text_samples] search_text += self.search_text_samples search_text_regexp = self.get_option('search_text_regexp') include = self.get_option('include') include_idx = self.get_option('include_idx', None) include_regexp = self.get_option('include_regexp') exclude = self.get_option('exclude') exclude_idx = self.get_option('exclude_idx', None) exclude_regexp = self.get_option('exclude_regexp') in_python_path = self.get_option('in_python_path') more_options = self.get_option('more_options') FindInFilesWidget.__init__(self, parent, search_text, search_text_regexp, search_path, include, include_idx, include_regexp, exclude, exclude_idx, exclude_regexp, supported_encodings, in_python_path, more_options) SpyderPluginMixin.__init__(self, parent) # Initialize plugin self.initialize_plugin() self.connect(self, SIGNAL('toggle_visibility(bool)'), self.toggle)
def __init__(self, parent=None): supported_encodings = self.get_option('supported_encodings') search_path = self.get_option('search_path', None) self.search_text_samples = self.get_option('search_text_samples') search_text = self.get_option('search_text') search_text = [txt for txt in search_text \ if txt not in self.search_text_samples] search_text += self.search_text_samples search_text_regexp = self.get_option('search_text_regexp') include = self.get_option('include') if not include: include = self.include_patterns() include_idx = self.get_option('include_idx', None) include_regexp = self.get_option('include_regexp') exclude = self.get_option('exclude') exclude_idx = self.get_option('exclude_idx', None) exclude_regexp = self.get_option('exclude_regexp') in_python_path = self.get_option('in_python_path') more_options = self.get_option('more_options') FindInFilesWidget.__init__(self, parent, search_text, search_text_regexp, search_path, include, include_idx, include_regexp, exclude, exclude_idx, exclude_regexp, supported_encodings, in_python_path, more_options) SpyderPluginMixin.__init__(self, parent) # Initialize plugin self.initialize_plugin() self.toggle_visibility.connect(self.toggle)
def __init__(self, parent=None): supported_encodings = CONF.get(self.ID, 'supported_encodings') search_path = CONF.get(self.ID, 'search_path', None) self.search_text_samples = CONF.get(self.ID, 'search_text_samples') search_text = CONF.get(self.ID, 'search_text') search_text = [txt for txt in search_text \ if txt not in self.search_text_samples] search_text += self.search_text_samples search_text_regexp = CONF.get(self.ID, 'search_text_regexp') include = CONF.get(self.ID, 'include') include_regexp = CONF.get(self.ID, 'include_regexp') exclude = CONF.get(self.ID, 'exclude') exclude_regexp = CONF.get(self.ID, 'exclude_regexp') FindInFilesWidget.__init__(self, parent, search_text, search_text_regexp, search_path, include, include_regexp, exclude, exclude_regexp, supported_encodings) PluginMixin.__init__(self, parent) self.connect(self, SIGNAL('toggle_visibility(bool)'), self.toggle)