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()
评论列表
文章目录