本文整理汇总了Python中idaapi.detach_action_from_menu方法的典型用法代码示例。如果您正苦于以下问题:Python idaapi.detach_action_from_menu方法的具体用法?Python idaapi.detach_action_from_menu怎么用?Python idaapi.detach_action_from_menu使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类idaapi
的用法示例。
在下文中一共展示了idaapi.detach_action_from_menu方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _uninstall_load_file
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def _uninstall_load_file(self):
"""
Remove the 'File->Load file->Code coverage file...' menu entry.
"""
# remove the entry from the File-> menu
result = idaapi.detach_action_from_menu(
"File/Load file/",
self.ACTION_LOAD_FILE
)
if not result:
return False
# unregister the action
result = idaapi.unregister_action(self.ACTION_LOAD_FILE)
if not result:
return False
# delete the entry's icon
idaapi.free_custom_icon(self._icon_id_file)
self._icon_id_file = idaapi.BADADDR
logger.info("Uninstalled the 'Code coverage file' menu entry")
示例2: _uninstall_load_batch
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def _uninstall_load_batch(self):
"""
Remove the 'File->Load file->Code coverage batch...' menu entry.
"""
# remove the entry from the File-> menu
result = idaapi.detach_action_from_menu(
"File/Load file/",
self.ACTION_LOAD_BATCH
)
if not result:
return False
# unregister the action
result = idaapi.unregister_action(self.ACTION_LOAD_BATCH)
if not result:
return False
# delete the entry's icon
idaapi.free_custom_icon(self._icon_id_batch)
self._icon_id_batch = idaapi.BADADDR
logger.info("Uninstalled the 'Code coverage batch' menu entry")
示例3: unregisterAction
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def unregisterAction(self):
idaapi.detach_action_from_menu(self.menuPath, self.id)
idaapi.unregister_action(self.id)
示例4: term
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def term(self):
self.hooks.unhook()
idaapi.detach_action_from_menu(MENU_PATH_GRAPHS, ShowXrefsGraphTo.get_name())
idaapi.detach_action_from_menu(MENU_PATH_GRAPHS, ShowXrefsGraphFrom.get_name())
ShowXrefsGraphTo.unregister()
ShowXrefsGraphFrom.unregister()
示例5: _uninstall_open_coverage_overview
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def _uninstall_open_coverage_overview(self):
"""
Remove the 'View->Open subviews->Coverage Overview' menu entry.
"""
# remove the entry from the View-> menu
result = idaapi.detach_action_from_menu(
"View/Open subviews/Hex dump",
self.ACTION_COVERAGE_OVERVIEW
)
if not result:
return False
# unregister the action
result = idaapi.unregister_action(self.ACTION_COVERAGE_OVERVIEW)
if not result:
return False
# delete the entry's icon
idaapi.free_custom_icon(self._icon_id_overview)
self._icon_id_overview = idaapi.BADADDR
logger.info("Uninstalled the 'Coverage Overview' menu entry")
#--------------------------------------------------------------------------
# Helpers
#--------------------------------------------------------------------------
示例6: _detach_from_menu_items
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def _detach_from_menu_items(self):
idaapi.detach_action_from_menu('Edit/Plugins/IdaMagnum/', 'idamagnum:searchmagic')
idaapi.detach_action_from_menu('Edit/Plugins/IdaMagnum/', 'idamagnum:configure')
示例7: detach_menu_actions
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def detach_menu_actions():
idaapi.detach_action_from_menu(DBG_MENU_PATH, '%s:registers' % PLUGIN_NAME)
idaapi.detach_action_from_menu(DBG_MENU_PATH, '%s:stack' % PLUGIN_NAME)
# -----------------------------------------------------------------------