def _select_advancement(self, advancement): from rokugani.winapp._dialogs import InputDialog value, ok = InputDialog.select_item( self._view, str(advancement.__class__.__name__), advancement.NAME, advancement.options, ) if ok: advancement.set_value(value)
def _edit_value(self, *args): from rokugani.winapp._dialogs import InputDialog current = self._builder.get_value(self._model_attr) value, ok = InputDialog.select_text( self._view, 'SELECT', self._model_attr, text=current ) if ok: self._builder.set_value(self._model_attr, value)