GOOD: start setting output text

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2021-11-04 01:13:13 -05:00
parent fb98e5eeea
commit 12167e419d
1 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import "errors"
import "git.wit.org/wit/gui"
var filename string = "resolv-1-1-1-1.conf"
var generaloutput *gui.Node
func resolvWindow(w *gui.Node) {
if (w == nil) {
@ -70,4 +71,14 @@ func resolvWindow(w *gui.Node) {
gNode.AddButton("test ping ipv6", func (*gui.Node) {
bash("ping -c 3 2001:4860:4860::6464")
})
gNode.AddButton("set output", func (*gui.Node) {
if (generaloutput != nil) {
generaloutput.SetText("wow")
generaloutput.SetMargined(false)
}
})
gNode = tab.AddGroup("Update")
generaloutput = gNode.MakeGroupEdit("output")
}