obj_func.py 文件源码

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

项目:ghetto_omr 作者: pohzhiee 项目源码 文件源码
def __init__(self, name):
        Gtk.RadioButton.__init__(self)
        self.name = name
        self.set_mode(False)
        self.connect("toggled", self.tool_btn_toggled)
        self.set_mode(False)
        self.set_relief(Gtk.ReliefStyle.NONE)

        file_path = "icons/" +name + ".svg"
        pix = GdkPixbuf.Pixbuf.new_from_file(file_path)
        pix1=pix.scale_simple(35,35,GdkPixbuf.InterpType.BILINEAR)
        img = Gtk.Image.new_from_pixbuf(pix1)
        self.set_image(img)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号