def make_header(self, tabs): """ Generate the frame header. """ columns = urwid.Columns([]) columns.title = urwid.Text("docker-console 0.1.0") columns.tabs = TabFrame.make_header(self, tabs) columns.contents = [ (columns.title, columns.options('weight', 1)), (columns.tabs, columns.options('weight', 2)), ] return columns
def __init__(self): tabs = ( ContainersTab(), ImagesTab(), ) TabFrame.__init__(self, tabs)
def __init__(self): tabs = (ContainersTab(), ImagesTab(),) TabFrame.__init__(self, tabs)