Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-18 04:08:32 -06:00
parent 66f87e3448
commit 95b019ad22
6 changed files with 15 additions and 15 deletions

View File

@ -8,7 +8,7 @@ package main
import (
"go.wit.com/log"
"go.wit.com/lib/widget"
"go.wit.com/widget"
// "go.wit.com/gui/toolkits/tree"
)
@ -16,7 +16,7 @@ func doAction(a widget.Action) {
log.Log(INFO, "doAction() START a.ActionType =", a.ActionType)
log.Log(INFO, "doAction() START a.ProgName =", a.ProgName)
if (a.ActionType == widget.ToolkitInit) {
if a.ActionType == widget.ToolkitInit {
return
}

2
go.mod
View File

@ -1,3 +1,3 @@
module go.wit.com/gui/toolkits/nocui
module go.wit.com/toolkits/nocui
go 1.21.4

View File

@ -1,15 +1,15 @@
package main
import (
"os"
"fmt"
"bufio"
"fmt"
"os"
"runtime/debug"
"strings"
"strconv"
"strings"
"go.wit.com/log"
"go.wit.com/lib/widget"
"go.wit.com/widget"
)
func simpleStdin() {
@ -51,7 +51,7 @@ func simpleStdin() {
i, _ := strconv.Atoi(s)
log.Log(NOW, "got input:", i)
n := me.treeRoot.FindWidgetId(i)
if (n != nil) {
if n != nil {
n.DumpWidget("found node")
for i, s := range n.State.Strings {
log.Warn("n.State.Strings =", i, s)

View File

@ -5,7 +5,7 @@ package main
*/
import (
"go.wit.com/lib/widget"
"go.wit.com/widget"
)
// Other goroutines must use this to access the GUI