mywid.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:boartty 作者: openstack 项目源码 文件源码
def __init__(self, app, title, current_key, values):
        self.app = app

        rows = []
        self.key = None
        self.value = None
        for key, value in values():
            button = SearchSelectInnerButton(key, value)
            urwid.connect_signal(button, 'click',
                                 lambda b:self.onSelected(b))
            rows.append(button)

        pile = urwid.Pile(rows)
        fill = urwid.Filler(pile, valign='top')
        super(SearchSelectDialog, self).__init__(urwid.LineBox(fill, title))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号