ribar.py 文件源码

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

项目:sc-controller 作者: kozec 项目源码 文件源码
def build_button(label, icon_name=None, icon_widget=None, use_stock=False):
        """ Builds button situable for action area """
        b = Gtk.Button.new_from_stock(label) if use_stock \
            else Gtk.Button.new_with_label(label)
        b.set_use_underline(True)
        if not icon_name is None:
            icon_widget = Gtk.Image()
            icon_widget.set_from_icon_name(icon_name, Gtk.IconSize.BUTTON)
        if not icon_widget is None:
            b.set_image(icon_widget)
            b.set_always_show_image(True)
        return b
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号