def make_row(text):
box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
label = Gtk.Label()
label.set_text(text)
label.set_margin_left(12)
label.set_margin_right(12)
box.set_margin_top(12)
box.set_margin_bottom(12)
box.pack_start(label, False, False, 0)
row = Gtk.ListBoxRow()
row.add(box)
return row
评论列表
文章目录