MCPcopy Create free account
hub / github.com/cogentcore/core / SetWidgetValue

Method SetWidgetValue

tensor/tensorcore/tensorgrid.go:184–187  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

182func (tg *TensorGrid) WidgetValue() any { return &tg.Tensor }
183
184func (tg *TensorGrid) SetWidgetValue(value any) error {
185 tg.SetTensor(value.(tensor.Tensor))
186 return nil
187}
188
189func (tg *TensorGrid) Init() {
190 tg.WidgetBase.Init()

Callers

nothing calls this directly

Calls 1

SetTensorMethod · 0.95

Tested by

no test coverage detected