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


Python idaapi.refresh_idaview_anyway方法代碼示例

本文整理匯總了Python中idaapi.refresh_idaview_anyway方法的典型用法代碼示例。如果您正苦於以下問題:Python idaapi.refresh_idaview_anyway方法的具體用法?Python idaapi.refresh_idaview_anyway怎麽用?Python idaapi.refresh_idaview_anyway使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在idaapi的用法示例。


在下文中一共展示了idaapi.refresh_idaview_anyway方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: color

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import refresh_idaview_anyway [as 別名]
def color(cls, bb, rgb, **frame):
        '''Sets the color of the basic block `bb` to `rgb`.'''
        set_node_info = idaapi.set_node_info2 if idaapi.__version__ < 7.0 else idaapi.set_node_info
        res, fn, ni = cls.color(bb), by_address(interface.range.start(bb)), idaapi.node_info_t()

        # specify the bg color
        r, b = (rgb&0xff0000) >> 16, rgb&0x0000ff
        ni.bg_color = ni.frame_color = (b<<16) | (rgb&0x00ff00) | r

        # now the frame color
        frgb = frame.get('frame', 0x000000)
        fr, fb = (frgb&0xff0000)>>16, frgb&0x0000ff
        ni.frame_color = (fb<<16) | (frgb&0x00ff00) | fr

        # set the node
        f = (idaapi.NIF_BG_COLOR|idaapi.NIF_FRAME_COLOR) if frame else idaapi.NIF_BG_COLOR
        try: set_node_info(interface.range.start(fn), bb.id, ni, f)
        finally: idaapi.refresh_idaview_anyway()

        # update the colors of each item too.
        for ea in block.iterate(bb):
            database.color(ea, rgb)
            #internal.netnode.alt.set(ea, 0x14, ni.bg_color)
        return res 
開發者ID:arizvisa,項目名稱:ida-minsc,代碼行數:26,代碼來源:function.py

示例2: OnCommand

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import refresh_idaview_anyway [as 別名]
def OnCommand(self, cmd_id):
        if cmd_id == self.cmd_refresh:
            self.Refresh()
            idaapi.refresh_idaview_anyway() 
開發者ID:danigargu,項目名稱:heap-viewer,代碼行數:6,代碼來源:bingraph.py

示例3: __exit__

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import refresh_idaview_anyway [as 別名]
def __exit__(self, exc_type, exc_val, exc_tb):
        can_update = self.LOCK._is_owned()

        if can_update:
            idaapi.refresh_idaview_anyway()

        self.LOCK.release() 
開發者ID:tmr232,項目名稱:Sark,代碼行數:9,代碼來源:ui.py

示例4: refresh_views

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import refresh_idaview_anyway [as 別名]
def refresh_views():
    """
    Refresh the IDA views.
    """

    # refresh IDA views
    idaapi.refresh_idaview_anyway()

    # refresh hexrays
    current_widget = idaapi.get_current_widget()
    vu = idaapi.get_widget_vdui(current_widget)
    if vu:
        vu.refresh_ctext() 
開發者ID:gaasedelen,項目名稱:prefix,代碼行數:15,代碼來源:ida_prefix.py

示例5: _refresh_ui

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import refresh_idaview_anyway [as 別名]
def _refresh_ui(self):
        """
        Note that this has been decorated with @execute_paint (vs @execute_ui)
        to help avoid deadlocking on exit.
        """
        for vdui in self._vduis.values():
            if vdui.valid():
                vdui.refresh_ctext(False)
        idaapi.refresh_idaview_anyway() 
開發者ID:gaasedelen,項目名稱:lighthouse,代碼行數:11,代碼來源:ida_painter.py

示例6: finish

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import refresh_idaview_anyway [as 別名]
def finish(self, bap):
        idaapi.IDAPython_ExecScript(bap.script.name, globals())
        idaapi.refresh_idaview_anyway()
        BapTaint._do_callbacks(self.kind)
        idc.Refresh() 
開發者ID:BinaryAnalysisPlatform,項目名稱:bap-ida-python,代碼行數:7,代碼來源:bap_taint.py

示例7: load_script

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import refresh_idaview_anyway [as 別名]
def load_script(self, bap, ea):
        idc.SetStatus(idc.IDA_STATUS_WORK)
        idaapi.IDAPython_ExecScript(bap.script.name, globals())
        self._do_callbacks(ea)
        idc.Refresh()
        # do we really need to call this?
        idaapi.refresh_idaview_anyway()
        idc.SetStatus(idc.IDA_STATUS_READY) 
開發者ID:BinaryAnalysisPlatform,項目名稱:bap-ida-python,代碼行數:10,代碼來源:bap_bir_attr.py

示例8: add_starts

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import refresh_idaview_anyway [as 別名]
def add_starts(self, bap):
        syms = []
        for line in bap.syms:
            heappush(syms, int(line, 16))
        for i in range(len(syms)):
            idaapi.add_func(heappop(syms), idaapi.BADADDR)
        idc.Refresh()
        idaapi.refresh_idaview_anyway() 
開發者ID:BinaryAnalysisPlatform,項目名稱:bap-ida-python,代碼行數:10,代碼來源:bap_functions.py

示例9: refresh

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import refresh_idaview_anyway [as 別名]
def refresh(cls):
        '''Refresh the main IDA disassembly view.'''
        return idaapi.refresh_idaview_anyway() 
開發者ID:arizvisa,項目名稱:ida-minsc,代碼行數:5,代碼來源:ui.py


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