main.py 文件源码

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

项目:gestureManager 作者: GabMus 项目源码 文件源码
def populate_gestures_listbox():
    for g in gestureHelper.GESTURES_POSSIBLE:
        box=Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
        box.set_margin_top(6)
        box.set_margin_left(6)
        box.set_margin_right(6)
        box.set_margin_bottom(6)
        label=Gtk.Label()
        label.set_text(str(g))
        box.pack_start(label, False, True, 0)
        row=Gtk.ListBoxRow()
        row.add(box)
        row.value=g
        listbox_gestures.add(row)
        listbox_gestures.show_all()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号