예제 #1
0
    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)
예제 #2
0
 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)