def h_spacer(self, addwidth):
# horizontal spacer
spacegrid = Gtk.Grid()
if addwidth:
label1 = Gtk.Label()
label2 = Gtk.Label()
spacegrid.attach(label1, 0, 0, 1, 1)
spacegrid.attach(label2, 1, 0, 1, 1)
spacegrid.set_column_spacing(addwidth)
return spacegrid
评论列表
文章目录