inputwidgets.py 文件源码

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

项目:Solfege 作者: RannyeriDev 项目源码 文件源码
def __init__(self, exname, callback, sensicallback, vars_to_watch):
        IntervalButtonsWidgetBase.__init__(self, exname, callback, sensicallback)
        g1 = Gtk.Grid()
        for i, (x, y) in enumerate((
                (0, 0), (1, 0), (2, 0), (3, 0),
                (0, 1), (1, 1), (2, 1), (3, 1),
                (0, 2), (1, 2), (2, 2), (3, 2))):
            g1.attach(self.mk_button(i + 1), x, y, 1, 1)
        g2 = Gtk.Grid()
        for i, (x, y) in enumerate((
                (0, 0), (1, 0), (2, 0), (3, 0),
                (0, 1), (1, 1), (2, 1), (3, 1),
                (0, 2), (1, 2), (2, 2), (3, 2))):
            g2.attach(self.mk_button(i + 13), x, y, 1, 1)
        self.set_row_spacing(gu.hig.SPACE_MEDIUM)
        self.add(g1)
        self.add(g2)
        self.post_construct(vars_to_watch)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号