package gui import ( "go.wit.com/log" "go.wit.com/gui/widget" ) func (parent *Node) NewSpinner(progname string, x int, y int) *Node { newNode := parent.newNode(progname, widget.Spinner) newNode.progname = progname newNode.Custom = func() { log.Info("default NewSpinner() change", progname) } newNode.X = x newNode.Y = y // inform the toolkits sendAction(newNode, widget.Add) return newNode }