def get_image_with_text2(text, image=None):
vbox = Gtk.VBox()
if image:
# image = Gtk.Image.new_from_file(os.path.join(comun.IMAGESDIR,image))
image = load_image(os.path.join(comun.IMAGESDIR, image))
image.set_alignment(0.5, 0.5)
vbox.pack_start(image, True, True, 0)
label = Gtk.Label.new(text)
label.set_alignment(0.5, 0.5)
vbox.pack_start(label, True, True, 0)
return vbox
评论列表
文章目录