本文整理匯總了Python中robotide.pluginapi.Plugin.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python Plugin.__init__方法的具體用法?Python Plugin.__init__怎麽用?Python Plugin.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類robotide.pluginapi.Plugin
的用法示例。
在下文中一共展示了Plugin.__init__方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application):
Plugin.__init__(self, application)
self.left_panel_show = False
self.datafiles = None
self.total_actions = 0
self.extract_frame = None
self.extract_list_view = None
示例2: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, app):
Plugin.__init__(self, app, default_settings={
'desktop_shortcut_exists': False,
'initial_project': None
})
self._window = None
atexit.register(self._close)
示例3: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application):
Plugin.__init__(self, application)
self.node_combobox = None
self.listbox = None
self.level_spinctrl = None
self.simplified_button = None
self.change_impact_button = None
示例4: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, app):
Plugin.__init__(self, app, default_settings={
'log_to_console': False,
'log_to_file': True
})
self._log = []
self._window = None
self._path = os.path.join(
tempfile.gettempdir(), '{}-ride.log'.format(uuid.uuid4()))
self._outfile = None
self._remove_old_log_files()
atexit.register(self._close)
示例5: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application):
Plugin.__init__(self, application, name=None, doc=None, metadata=None,
default_settings=None, initially_enabled=True)
self.menu = [
ActionInfo("ClearCase", "Check &Out", self.OnCheckOut, position=0),
ActionInfo("ClearCase", "&Undo Check out", self.OnUndoCheckOut, position=1),
ActionInfo("ClearCase", "Check &In", self.OnCheckIn, position=2),
]
self.treemenuitems = [
PopupMenuItem("---"),
PopupMenuItem("Check Out", self.OnCheckOut, self),
PopupMenuItem("Undo Check Out", self.OnUndoCheckOut, self),
PopupMenuItem("Check In", self.OnCheckIn, self)
]
示例6: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application=None):
Plugin.__init__(self, application, initially_enabled=True,
default_settings=self.defaults)
self.version = "3.01"
self.metadata = {
"url":
"https://github.com/robotframework/RIDE/wiki/Test-Runner-Plugin"}
self._reload_timer = None
self._frame = application.frame
self._report_file = None
self._log_file = None
self._controls = {}
self._running = False
self._currently_executing_keyword = None
self._test_runner = TestRunner(application.model)
self._register_shortcuts()
self._min_log_level_number = LOG_LEVELS['INFO']
self._names_to_run = set()
示例7: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application):
Plugin.__init__(self, application)
self._editor_component = None
示例8: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, app):
Plugin.__init__(self, app)
self.all_keywords = []
self._criteria = _SearchCriteria()
self.dirty = False
示例9: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application):
Plugin.__init__(self, application)
self._tab = None
self._grid_popup_creator = PopupCreator()
self._creator = EditorCreator(self.register_editor)
self._editor = None
示例10: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application):
Plugin.__init__(self, application)
示例11: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, *args):
Plugin.__init__(self, *args)
self._full_file_name = None
self._test_case_path = None
示例12: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application):
Plugin.__init__(self, application, default_settings={'version_shown':''})
self._view = None
示例13: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, app):
Plugin.__init__(self, app, default_settings={'log_to_console': False})
self._log = []
self._window = None
示例14: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application=None):
settings = {'recent_files':[], 'max_number_of_files':4}
Plugin.__init__(self, application, default_settings=settings)
示例15: __init__
# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
def __init__(self, application=None):
self.context_menu = [PopupMenuItem('---')]
self.context_menu += [
PopupMenuItem(item['name'], callable=self.create_callable(item['name'], item['action'])) for
item in filter(lambda x: x.get('context_menu', False), self.menu)]
Plugin.__init__(self, application, metadata=self.metadata)