(self, symbols)
Fills the SymbolsList with data
Fills the SymbolsList with data
Fills the SymbolsList with data
def set_symbols(self, symbols):
        """ Fills the SymbolsList with data
        """
        if self.symbols_list is None:
            return

        self.symbols_list.clear()
        for symbol in symbols:
            name = QStandardItem()
            name.setTextAlignment(Qt.AlignLeft)
            if 'name' in symbol:
                name.setText(symbol['name'])

            address = QStandardItem()
            address.setTextAlignment(Qt.AlignCenter)
            str_fmt = '0x{0:X}'
            if not self.uppercase_hex:
                str_fmt = '0x{0:x}'

            if 'address' in symbol:
                address.setText(str_fmt.format(int(symbol['address'], 16)))

            type_ = QStandardItem()
            type_.setTextAlignment(Qt.AlignLeft)
            if 'type' in symbol:
                type_.setText(symbol['type'])

            self.symbols_model.appendRow([name, address, type_])
def set_symbols ( self , symbols ) : if self . symbols_list is None : return self . symbols_list . clear ( ) for symbol in symbols : name = QStandardItem ( ) name . setTextAlignment ( Qt . AlignLeft ) if 'name' in symbol : name . setText ( symbol [ 'name' ] ) address = QStandardItem ( ) address . setTextAlignment ( Qt . AlignCenter ) str_fmt = '0x{0:X}' if not self . uppercase_hex : str_fmt = '0x{0:x}' if 'address' in symbol : address . setText ( str_fmt . format ( int ( symbol [ 'address' ] , 16 ) ) ) type_ = QStandardItem ( ) type_ . setTextAlignment ( Qt . AlignLeft ) if 'type' in symbol : type_ . setText ( symbol [ 'type' ] ) self . symbols_model . appendRow ( [ name , address , type_ ] )