34 lines
660 B
Go
34 lines
660 B
Go
package main
|
|
|
|
import (
|
|
"go.wit.com/gui"
|
|
"go.wit.com/lib/gadgets"
|
|
)
|
|
|
|
var upDNSwin *gadgets.BasicWindow
|
|
|
|
func updateDNS(w *gui.Node) {
|
|
if upDNSwin != nil {
|
|
upDNSwin.Toggle()
|
|
return
|
|
}
|
|
|
|
upDNSwin = gadgets.NewBasicWindow(w, "dns update Window")
|
|
|
|
////////////// filename /////////////////////////
|
|
gNode := upDNSwin.Box().NewGroup("eth0 update")
|
|
// fontsize := "16"
|
|
|
|
dnsNode := gNode.NewCombobox("size")
|
|
dnsNode.AddText("8")
|
|
dnsNode.AddText("16")
|
|
dnsNode.AddText("24")
|
|
dnsNode.SetText("12")
|
|
|
|
////////////// connect /////////////////////////
|
|
gNode = upDNSwin.Box().NewGroup("Update")
|
|
|
|
gNode.NewButton("setup .Xresources", func() {
|
|
})
|
|
}
|