I just ran across Bruce Jackson’s ( @ebj075 ) fork of Artem Glebov’s 2013 PhotoTagging Gramplet. And found that one of his changes was in the Person Selector to enable the Searchbar?!? I’m excited!
Does it only require that one extra Parameter? Can I tweak the other Person Selectors that are missing a search bar that easily?
def sel_person_clicked(self, event):
if self.selection_widget.get_current():
SelectPerson = SelectorFactory('Person')
sel = SelectPerson(self.dbstate, self.uistate, self.track,
_("Select Person")
, show_search_bar=True
)
person = sel.run()
if person:
self.set_current_person(person)
self.selection_widget.clear_selection()
self.refresh()
self.enable_buttons()
The only remaining drawback is that it is a 'Grouped ’ list instead of a ‘Flat’ list. Is that another similarly simple tweak? [see the Flat selector instead of hierarchical thread in this forum’s Help section]