def new_label_for(label, field, align_right=True):
"""Creates a new gtk.Label and associates it to field"""
wid = gtk.Label(label)
wid.set_mnemonic_widget(field)
if align_right:
wid.set_justify(gtk.JUSTIFY_RIGHT)
wid.set_alignment(xalign=1.0, yalign=0.5)
return wid
# new_label_for()
评论列表
文章目录