本文整理汇总了Python中spyderlib.plugins.SpyderPluginMixin类的典型用法代码示例。如果您正苦于以下问题:Python SpyderPluginMixin类的具体用法?Python SpyderPluginMixin怎么用?Python SpyderPluginMixin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SpyderPluginMixin类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, parent=None):
BreakpointWidget.__init__(self, parent=parent)
SpyderPluginMixin.__init__(self, parent)
# Initialize plugin
self.initialize_plugin()
self.set_data()
示例2: __init__
def __init__(self, parent):
QStackedWidget.__init__(self, parent)
SpyderPluginMixin.__init__(self, parent)
self.shellwidgets = {}
# Initialize plugin
self.initialize_plugin()
示例3: __init__
def __init__(self, parent):
PydocBrowser.__init__(self, parent)
SpyderPluginMixin.__init__(self, parent)
self.set_zoom_factor(CONF.get(self.ID, 'zoom_factor'))
self.url_combo.setMaxCount(CONF.get(self.ID, 'max_history_entries'))
self.url_combo.addItems( self.load_history() )
示例4: __init__
def __init__(self, parent=None):
PylintWidget.__init__(self, parent=parent,
max_entries=self.get_option('max_entries', 50))
SpyderPluginMixin.__init__(self, parent)
# Initialize plugin
self.initialize_plugin()
示例5: __init__
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)
示例6: __init__
def __init__(self, parent=None):
QWidget.__init__(self, parent=parent)
SpyderPluginMixin.__init__(self, parent)
layout = QVBoxLayout()
self.setLayout(layout)
# Initialize plugin
self.initialize_plugin()
示例7: __init__
def __init__(self, parent=None):
CondaPackagesWidget.__init__(self, parent=parent)
SpyderPluginMixin.__init__(self, parent)
self.root_env = 'root'
self._prefix_to_set = self.get_environment_prefix()
# Initialize plugin
self.initialize_plugin()
示例8: __init__
def __init__(self, parent=None):
ExplorerWidget.__init__(self, parent=parent,
name_filters=self.get_option('name_filters'),
show_all=self.get_option('show_all'),
show_icontext=self.get_option('show_icontext'))
SpyderPluginMixin.__init__(self, parent)
# Initialize plugin
self.initialize_plugin()
示例9: __init__
def __init__(self, parent=None):
CondaPackagesWidget.__init__(self, parent=parent)
SpyderPluginMixin.__init__(self, parent)
self.root_env = 'root'
self._env_to_set = self.get_active_env()
# Initialize plugin
self.initialize_plugin()
示例10: __init__
def __init__(self, parent=None):
ExplorerWidget.__init__(self, parent=parent,
name_filters=self.get_option('name_filters'),
valid_types=VALID_EXT,
show_all=self.get_option('show_all'),
show_toolbar=self.get_option('show_toolbar'),
show_icontext=self.get_option('show_icontext'))
SpyderPluginMixin.__init__(self, parent)
# Initialize plugin
self.initialize_plugin()
self.set_font(self.get_plugin_font())
示例11: __init__
def __init__(self, parent):
self.main = parent
PydocBrowser.__init__(self, parent)
SpyderPluginMixin.__init__(self, parent)
# Initialize plugin
self.initialize_plugin()
self.register_widget_shortcuts("Editor", self.find_widget)
self.webview.set_zoom_factor(self.get_option('zoom_factor'))
self.url_combo.setMaxCount(self.get_option('max_history_entries'))
self.url_combo.addItems( self.load_history() )
示例12: __init__
def __init__(self, parent=None):
ProjectExplorerWidget.__init__(self, parent=parent,
name_filters=self.get_option('name_filters'),
valid_types=VALID_EXT,
show_all=self.get_option('show_all', False))
SpyderPluginMixin.__init__(self, parent)
# Initialize plugin
self.initialize_plugin()
self.treewidget.header().hide()
self.set_font(self.get_plugin_font())
self.load_config()
示例13: __init__
def __init__(self, parent=None):
ExplorerWidget.__init__(
self,
parent=parent,
name_filters=self.get_option("name_filters"),
show_all=self.get_option("show_all"),
show_icontext=self.get_option("show_icontext"),
)
SpyderPluginMixin.__init__(self, parent)
# Initialize plugin
self.initialize_plugin()
self.set_font(self.get_plugin_font())
示例14: __init__
def __init__(self, parent):
QWidget.__init__(self, parent)
SpyderPluginMixin.__init__(self, parent)
# Widgets
self.stack = QStackedWidget(self)
self.shellwidgets = {}
# Layout
layout = QVBoxLayout()
layout.addWidget(self.stack)
self.setLayout(layout)
# Initialize plugin
self.initialize_plugin()
示例15: __init__
def __init__(self, parent=None):
ExplorerWidget.__init__(self, parent=parent,
path=CONF.get(self.ID, 'path', None),
name_filters=CONF.get(self.ID, 'name_filters'),
valid_types=CONF.get(self.ID, 'valid_filetypes'),
show_all=CONF.get(self.ID, 'show_all'),
show_toolbar=CONF.get(self.ID, 'show_toolbar'),
show_icontext=CONF.get(self.ID, 'show_icontext'))
SpyderPluginMixin.__init__(self, parent)
self.editor_valid_types = None
self.set_font(get_font(self.ID))
self.connect(self, SIGNAL("open_file(QString)"), self.open_file)