コード例 #1
0
ファイル: dockyard.py プロジェクト: Paradiddley/dockyard
    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 listbox_row_activated(self, listbox, listboxrow):
     """ docker container has been selected so open terminal """
     self.current_container_id = listboxrow.get_name()
     self.current_container_info = get_container_info(self.current_container_id)
     
     self.menu.show_all()
     self.menu.popup(None, None, None, None, 0, Gtk.get_current_event_time())
コード例 #3
0
ファイル: gdocker_logs.py プロジェクト: Paradiddley/dockyard
 def show_logs(self, container_id):
     self.container_id = container_id
     self.container = get_container_info(container_id)
     self.window = self.builder.get_object("window1")
     self.window.show_all()
     pprint(self.container)
     headerbar = self.builder.get_object("headerbar1")
     # headerbar.set_title(self.container['Name'][1:])
     # headerbar.set_subtitle(self.container['Config']['Image'])
     #~ self.set_text()
     GObject.timeout_add(1000, self.set_text)