def paths_from_items(items, item_type=TreeWidgetItem.TYPE, item_filter=None):
 if (item_filter is None):
  item_filter = _true_filter
 return [i.path for i in items if ((i.type() == item_type) and item_filter(i))]

def paths_from_items ( items , item_type = TreeWidgetItem . TYPE , item_filter = None ) : if ( item_filter is None ) : item_filter = _true_filter return [ i . path for i in items if ( ( i . type ( ) == item_type ) and item_filter ( i ) ) ]
return a list of paths from a list of items .