From 8fd3e719d9c6e9ce4859b2889656111fd4bc75a9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 2 Jun 2019 21:01:18 -0700 Subject: [PATCH] hopefully starting now it will be new features here Signed-off-by: Jeff Carr --- debug.go | 2 +- entry.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/debug.go b/debug.go index 03b1d9f..2074e1f 100644 --- a/debug.go +++ b/debug.go @@ -25,7 +25,7 @@ func WatchGUI() { for name, abox := range window.BoxMap { log.Printf("\twatchGUI() BOX mapname=%-12s abox.Name=%-12s", name, abox.Name) /* - if (name == "SplashArea3") { + if (name == "DEBUG") { log.Println("\t\twatchGUI() BOX abox =", reflect.TypeOf(abox)) win := abox.Window log.Println("\t\twatchGUI() BOX win =", reflect.TypeOf(win)) diff --git a/entry.go b/entry.go index 75c7f28..cd7cfba 100644 --- a/entry.go +++ b/entry.go @@ -7,8 +7,6 @@ import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" import "github.com/davecgh/go-spew/spew" -// THIS IS CLEAN (except the 'Memory' normalization example) - // functions for handling text entry boxes func NewLabel(box *GuiBox, text string) { @@ -136,7 +134,7 @@ func defaultMakeEntry(startValue string, edit bool, action string) *GuiEntry { newEntry.UiEntry = e newEntry.Edit = edit newEntry.Action = action - if (action == "Memory") { + if (action == "INT") { newEntry.Normalize = normalizeInt } Data.AllEntries = append(Data.AllEntries, &newEntry)