diff options
| author | Jeff Carr <[email protected]> | 2022-11-05 10:19:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-11-05 10:19:04 -0500 |
| commit | 099efb6b24caf9eaad50d7386636a7ac23552bde (patch) | |
| tree | 215685d7153e6d002c921d4f7ad2fa12d52fe323 /textbox.go | |
| parent | a72d0ab2d0ff58704cc28993ea428b8c6c8825d7 (diff) | |
v0.4.2 more code cleanups and improvementsv0.4.2
Add command line argv handling using go-arg
make hello world dumb stupid simple again
more swtiching to common code
move debugging options to support go-args
more debugging output cleanup
more debugging cleanups
fix null pointer crash
Diffstat (limited to 'textbox.go')
| -rw-r--r-- | textbox.go | 25 |
1 files changed, 19 insertions, 6 deletions
@@ -22,13 +22,26 @@ func (n *Node) NewTextbox(name string) *Node { newt.Name = name // newt.Custom = func () { newt.OnChanged = func (*toolkit.Toolkit) { - println("AM IN CALLBACK. SETTING NODE.checked START") + if (Config.Options.DebugChange) { + log.Println("AM IN CALLBACK. SETTING NODE.checked START") + c.Dump() + c.toolkit.Dump() + } c.text = c.toolkit.GetText() - c.Dump() - c.toolkit.Dump() - c.OnChanged(n) - println("n.toolkit.GetText() =", c.text) - println("AM IN CALLBACK. SETTING NODE.checked END") + if (c.OnChanged == nil) { + if (Config.Options.DebugChange) { + log.Println("this is println?") + } + } else { + if (Config.Options.DebugChange) { + log.Println("this is println? running c.OnChanged() here") + } + c.OnChanged(n) + } + if (Config.Options.DebugChange) { + log.Println("n.toolkit.GetText() =", c.text) + log.Println("AM IN CALLBACK. SETTING NODE.checked END") + } } return c |
