def __init__( self ): win = StandardWindow("Testing", "Elementary SearchableList") win.callback_delete_request_add(lambda o: elm.exit()) ourList = SearchableList(win, size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH) self.keys = ["Jeff", "Kristi", "Jacob", "Declan", "Joris", "Timmy", "Tristam"] for kbl in self.keys: ourList.item_append(kbl) ourList.show() win.resize_object_add(ourList) win.resize(600, 400) win.show()
def __init__(self): win = StandardWindow("Testing", "Elementary SearchableList") win.callback_delete_request_add(lambda o: elm.exit()) win.show() ourList = SearchableList(win, size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH) self.keys = ["Jeff", "Kristi", "Jacob", "Declan", "Joris", "Timmy", "Tristam"] for kbl in self.keys: ourList.item_append(kbl) ourList.show() win.resize_object_add(ourList) win.resize(600, 400) win.show()
def __init__(self): StandardWindow.__init__(self, "ex10", "Searchable List", size=(300, 200)) self.callback_delete_request_add(lambda o: elm.exit()) searchList = SearchableList(self) searchList.size_hint_weight = EXPAND_BOTH searchList.ourList.callback_activated_add(self.listItemSelected) ListItems.sort() for it in ListItems: searchList.item_append(it) searchList.show() self.resize_object_add(searchList)