profile_switcher.py 文件源码

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

项目:sc-controller 作者: kozec 项目源码 文件源码
def __init__(self, button_name, tooltip, callback):
        Gtk.Revealer.__init__(self)
        self.button = Gtk.Button.new_from_icon_name(button_name, Gtk.IconSize.SMALL_TOOLBAR)
        self.button.set_margin_left(5)
        self.button.connect('clicked', callback)
        self.button.set_tooltip_text(tooltip)
        self.set_reveal_child(False)
        self.set_transition_type(Gtk.RevealerTransitionType.SLIDE_LEFT)
        self.add(self.button)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号