def fill_screenshot_items_tree_widget(self, items=None): if items: for screenshot in items: gf.add_preview_item(self.items_tree_widget, screenshot=screenshot)
def fill_items_tree_widget(self, items=None): if items: for file_object in items.get('file'): gf.add_preview_item(self.items_tree_widget, file_object=file_object)