MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / set_value

Method set_value

gui/widgets.py:311–316  ·  view source on GitHub ↗

Set the value.

(self, value: Any)

Source from the content-addressed store, hash-verified

309 return self._value_var.get()
310
311 def set_value(self, value: Any) -> None:
312 """Set the value."""
313 if self._type_hint == "bool":
314 self._value_var.set(bool(value))
315 else:
316 self._value_var.set(str(value))
317
318 def get_key(self) -> str:
319 """Get the setting key."""

Callers 2

reloadMethod · 0.80
reset_to_defaultsMethod · 0.80

Calls 1

setMethod · 0.80

Tested by

no test coverage detected