feed.py 文件源码

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

项目:hubangl 作者: soonum 项目源码 文件源码
def _build_toolbutton(self, name, icon,
                          on_signal=None, callback=None, tooltip_text=None):
        toolbutton = Gtk.ToolButton(name)
        # FIXME: Tooltip text does not appear on the screen
        if not tooltip_text:
            toolbutton.set_tooltip_text(name)
        else:
            toolbutton.set_tooltip_text(tooltip_text)
        toolbutton.set_icon_widget(icon)

        if on_signal and callback:
            toolbutton.connect(on_signal, callback)
        return toolbutton
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号