feed.py 文件源码

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

项目:hubangl 作者: soonum 项目源码 文件源码
def _build_confirm_changes_button(self, label=None, on_signal="clicked",
                                      callback=None):
        """
        Build a confirmation button used in every side bar menus.
        This button triggers interaction with the backend in case of settings
        changes. Otherwise it stays insensitive.
        """
        if not label:
            label = "Confirm"
        button = Gtk.Button(label)
        button.set_sensitive(False)
        button.set_margin_top(12)
        if callback:
            button.connect(on_signal, callback)

        return button
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号