當前位置: 首頁>>代碼示例>>Python>>正文


Python Plugin.__init__方法代碼示例

本文整理匯總了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
開發者ID:mypstom,項目名稱:robotide,代碼行數:9,代碼來源:duplicateviewplugin.py

示例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)
開發者ID:scathaig,項目名稱:RIDE,代碼行數:9,代碼來源:desktopshortcut.py

示例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
開發者ID:mypstom,項目名稱:robotide,代碼行數:9,代碼來源:advancegraph.py

示例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)
開發者ID:jiabinshan,項目名稱:RIDE,代碼行數:14,代碼來源:log.py

示例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)
        ]
開發者ID:TKCen,項目名稱:RobotFramework.RIDE.ClearCasePlugin,代碼行數:18,代碼來源:ccplugin.py

示例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()
開發者ID:HelioGuilherme66,項目名稱:RIDE,代碼行數:20,代碼來源:testrunnerplugin.py

示例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
開發者ID:Acidburn0zzz,項目名稱:RIDE,代碼行數:5,代碼來源:texteditor.py

示例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
開發者ID:HelioGuilherme66,項目名稱:RIDE,代碼行數:7,代碼來源:keywordsearch.py

示例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
開發者ID:blueenergy,項目名稱:RIDE,代碼行數:8,代碼來源:__init__.py

示例10: __init__

# 需要導入模塊: from robotide.pluginapi import Plugin [as 別名]
# 或者: from robotide.pluginapi.Plugin import __init__ [as 別名]
 def __init__(self, application):
     Plugin.__init__(self, application)
開發者ID:HelioGuilherme66,項目名稱:RIDE,代碼行數:4,代碼來源:plugin_module.py

示例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
開發者ID:franzmelchiori,項目名稱:alyvix,代碼行數:6,代碼來源:alyvix_plugin.py

示例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
開發者ID:abrain,項目名稱:RIDE,代碼行數:5,代碼來源:releasenotes.py

示例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
開發者ID:EnochManohar,項目名稱:RIDE,代碼行數:6,代碼來源:log.py

示例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)
開發者ID:Acidburn0zzz,項目名稱:RIDE,代碼行數:5,代碼來源:recentfiles.py

示例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)
開發者ID:ukostas,項目名稱:robotframework-ride-tortoisesvn,代碼行數:8,代碼來源:TortoiseSVNPlugin.py


注:本文中的robotide.pluginapi.Plugin.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。