package gui import ( "go.wit.com/log" "go.wit.com/gui/widget" ) func (parent *Node) NewSlider(progname string, x int, y int) *Node { newNode := parent.newNode(progname, widget.Slider) newNode.progname = progname newNode.Custom = func() { log.Log(GUI, "even newer clicker() name in NewSlider name =", progname) } newNode.X = x newNode.Y = y // inform the toolkits sendAction(newNode, widget.Add) return newNode }