def __init__(self, pubpen):
self.pubpen = pubpen
#
# Always displayed widgets
#
self.menu_bar_window = MenuBarWindow(self.pubpen)
self.info_window = InfoWindow(self.pubpen)
self.main_window = MainWindow(self.pubpen)
self.msg_window = MessageWindow(self.pubpen)
pile = urwid.Pile((self.main_window,
(self.msg_window.height, self.msg_window),
))
cols = urwid.Columns((pile, (15, self.info_window)))
layout = urwid.Pile((
('pack', self.menu_bar_window),
('weight', 1, cols),
))
self.top = urwid.Frame(layout)
super().__init__(self.top)
tline = self.tline_widget[0]
self.status_bar = StatusBar(self.pubpen, spacer=tline.div_char)
self.tline_widget.contents.clear()
self.tline_widget.contents.extend((
(tline, self.tline_widget.options('given', 1, False)),
(self.status_bar, self.tline_widget.options('weight', 1, False)),
(tline, self.tline_widget.options('given', 1, False)),
))
评论列表
文章目录