def refresh(self, filter_string=None): """ get a new interface and start the progress bar""" self.listbox.clear() for container in get_containers(filter=filter_string): container_info = get_container_info(container['Id']) self.listbox.list_containers(container, container_info)
def populate(self, filter_string=None): """populate the listbox with current containers""" self.clear() for container in get_containers(filter=filter_string): container_info = get_container_name(container['Id']) self.list_containers(container, container_info)