GOOD: start setting output text
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
fb98e5eeea
commit
12167e419d
|
@ -8,6 +8,7 @@ import "errors"
|
||||||
import "git.wit.org/wit/gui"
|
import "git.wit.org/wit/gui"
|
||||||
|
|
||||||
var filename string = "resolv-1-1-1-1.conf"
|
var filename string = "resolv-1-1-1-1.conf"
|
||||||
|
var generaloutput *gui.Node
|
||||||
|
|
||||||
func resolvWindow(w *gui.Node) {
|
func resolvWindow(w *gui.Node) {
|
||||||
if (w == nil) {
|
if (w == nil) {
|
||||||
|
@ -70,4 +71,14 @@ func resolvWindow(w *gui.Node) {
|
||||||
gNode.AddButton("test ping ipv6", func (*gui.Node) {
|
gNode.AddButton("test ping ipv6", func (*gui.Node) {
|
||||||
bash("ping -c 3 2001:4860:4860::6464")
|
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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue