def _activate(self, fx_name, fx, future=None): # need to do this as a callback if an animation # is shutting down if fx.apply(): if fx_name != self.current_fx[0]: self.current_fx = (fx_name, fx) if fx_name == CUSTOM: return True self._driver.preferences.fx = fx_name argsdict = get_args_dict(fx) if not argsdict: argsdict = None self._driver.preferences.fx_args = argsdict return True
def trait_values(self): return get_args_dict(self._renderer)