23 lines
410 B
Go
23 lines
410 B
Go
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
|
|
}
|