widget.py 文件源码

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

项目:MTodo 作者: mortezaipo 项目源码 文件源码
def __init__(self, title: str, subtitle: str, buttons: dict):
        """Initialize HeaderBar class"""
        self._widget = Gtk.HeaderBar()
        self._widget.set_show_close_button(True)
        self._widget.props.title = title
        self._widget.set_subtitle(subtitle)
        if buttons:
            for button, position in buttons.items():
                if position == "left":
                    self._widget.pack_start(button.render)
                elif position == "right":
                    self._widget.pack_end(button.render)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号