(self, item_widget, item_info, height, width)
Set item text & icons using the info available.
Set item text & icons using the info available.
Set item text & icons using the info available .
def set_item_display(self, item_widget, item_info, height, width):
        """Set item text & icons using the info available."""
        item_label = item_info['text']
        item_type = item_info['type']

        item_text = self.get_html_item_representation(
            item_label, item_type,
            height=height, width=width)

        item_widget.setText(item_text)
        item_widget.setIcon(self._get_cached_icon(item_type))
def set_item_display ( self , item_widget , item_info , height , width ) : item_label = item_info [ 'text' ] item_type = item_info [ 'type' ] item_text = self . get_html_item_representation ( item_label , item_type , height = height , width = width ) item_widget . setText ( item_text ) item_widget . setIcon ( self . _get_cached_icon ( item_type ) )