ui/EntryTree.py
def add_item(self, data, parent=None):
        """
        Create an entry tree item from dictionary of data, add to tree, and return item
        :param data: dict of data attributes
        :param parent: Parent object
        :return: Entry tree item
        """
        item = EntryTreeItem(parent if parent else self)
        item.metadata = data

        if data:
            item.update()
        else:
            item.setText(0, 'No results found.')

        return item

        Create an entry tree item from dictionary of data, add to tree, and return item
        :param data: dict of data attributes
        :param parent: Parent object
        :return: Entry tree item
        
Create an entry tree item from dictionary of data, add to tree, and return item
Create an entry tree item from dictionary of data add to tree and return item
def add_item(self, data, parent=None):
        item = EntryTreeItem(parent if parent else self)
        item.metadata = data
        if data:
            item.update()
        else:
            item.setText(0, 'No results found.')
        return item
def add_item ( self , data , parent = None ) : item = EntryTreeItem ( parent if parent else self ) item . metadata = data if data : item . update ( ) else : item . setText ( 0 , 'No results found.' ) return item
Create an entry tree item from dictionary of data, add to tree, and return item
Create an entry tree item from dictionary of data add to tree and return item
"""
        Create an entry tree item from dictionary of data, add to tree, and return item
        :param data: dict of data attributes
        :param parent: Parent object
        :return: Entry tree item
        """
Entry tree item
Entry tree item
self
data
dict of data attributes
dict of data attributes
parent
None