(self, ptr, from_api=False)
Remove Address from List
Remove Address from List
Remove Address from List
def remove_address(self, ptr, from_api=False):
        """ Remove Address from List
        """
        if isinstance(ptr, str):
            ptr = utils.parse_ptr(ptr)

        if not from_api:
            # called somewhere so remove watchpoint in dwarf too
            self._app_window.dwarf.dwarf_api('removeWatchpoint', ptr)
            return

        str_frmt = ''
        if self._uppercase_hex:
            str_frmt = '0x{0:X}'.format(ptr)
        else:
            str_frmt = '0x{0:x}'.format(ptr)

        model = self.list_view.model()
        for item in range(model.rowCount()):
            if str_frmt == model.item(item).text():
                model.removeRow(item)
def remove_address ( self , ptr , from_api = False ) : if isinstance ( ptr , str ) : ptr = utils . parse_ptr ( ptr ) if not from_api : # called somewhere so remove watchpoint in dwarf too self . _app_window . dwarf . dwarf_api ( 'removeWatchpoint' , ptr ) return str_frmt = '' if self . _uppercase_hex : str_frmt = '0x{0:X}' . format ( ptr ) else : str_frmt = '0x{0:x}' . format ( ptr ) model = self . list_view . model ( ) for item in range ( model . rowCount ( ) ) : if str_frmt == model . item ( item ) . text ( ) : model . removeRow ( item )