* src/AddrEdit.py: use new label scheme for tabs that uses an
icon to indicate used tabs * src/AttrEdit.py: use new label scheme for tabs that uses an icon to indicate used tabs * src/NameEdit.py: use new label scheme for tabs * src/Date.py: incorporate instance check form gramps20 branch * src/EditPerson.py: add additional fields for name edit, handle lds page better, adapt to new label scheme * src/GrampsDbBase.py: fix typos * src/GrampsGEDDB.py: fix undo handling * src/GrampsInMemDB.py: fix undo handling * src/GrampsXMLDB.py: fix undo handling * src/PeopleView.py: don't reselect an already selected person * src/Utils.py: new tab scheme * src/edit_person.glade new tab scheme * src/gramps_main.py: 1->True, 0->False replacements * src/DbPrompter.py: bring up to date with gramps20 branch * src/DisplayModels.py: bring up to date with gramps20 branch * src/ReadGedcom.py: bring up to date with gramps20 branch * src/Relationship.py: bring up to date with gramps20 branch svn: r4406
This commit is contained in:
16
src/Utils.py
16
src/Utils.py
@ -403,16 +403,20 @@ def search_for(name):
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def bold_label(label):
|
||||
text = unicode(label.get_text())
|
||||
label.set_text("<b>%s</b>" % text )
|
||||
label.set_use_markup(1)
|
||||
clist = label.get_children()
|
||||
text = unicode(clist[1].get_text())
|
||||
clist[0].show()
|
||||
clist[1].set_text("<b>%s</b>" % text )
|
||||
clist[1].set_use_markup(True)
|
||||
|
||||
def unbold_label(label):
|
||||
text = unicode(label.get_text())
|
||||
clist = label.get_children()
|
||||
text = unicode(clist[1].get_text())
|
||||
text = text.replace('<b>','')
|
||||
text = text.replace('</b>','')
|
||||
label.set_text(text)
|
||||
label.set_use_markup(0)
|
||||
clist[0].hide()
|
||||
clist[1].set_text(text)
|
||||
clist[1].set_use_markup(False)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user