def on_selection_change(self, selection, selected_tree): obj = TreeviewProxy.by_selection(selection).get_selected_row() if obj: self.unselect(set(('authors','editors','serials'))-set((selected_tree,))) self._filter.refilter_obj(obj() if obj else None)
def on_selection_change(self, selection, selected_tree): obj = TreeviewProxy.by_selection(selection).get_selected_row() if obj: self.unselect( set(('authors', 'editors', 'serials')) - set((selected_tree, ))) self._filter.refilter_obj(obj() if obj else None)
def on_selection_user_change(self, selection): obj = TreeviewProxy.by_selection(selection).get_selected_row() self._filter.refilter_loans(obj() if obj else None)