wit-debian-gui/window-dns-update.go

34 lines
660 B
Go
Raw Permalink Normal View History

2021-11-02 23:44:28 -05:00
package main
import (
"go.wit.com/gui"
"go.wit.com/lib/gadgets"
)
var upDNSwin *gadgets.BasicWindow
2021-11-02 23:44:28 -05:00
func updateDNS(w *gui.Node) {
if upDNSwin != nil {
upDNSwin.Toggle()
return
2021-11-02 23:44:28 -05:00
}
upDNSwin = gadgets.NewBasicWindow(w, "dns update Window")
2021-11-02 23:44:28 -05:00
////////////// filename /////////////////////////
gNode := upDNSwin.Box().NewGroup("eth0 update")
2021-11-02 23:44:28 -05:00
// fontsize := "16"
dnsNode := gNode.NewCombobox("size")
dnsNode.AddText("8")
dnsNode.AddText("16")
dnsNode.AddText("24")
2021-11-02 23:44:28 -05:00
dnsNode.SetText("12")
////////////// connect /////////////////////////
gNode = upDNSwin.Box().NewGroup("Update")
2021-11-02 23:44:28 -05:00
gNode.NewButton("setup .Xresources", func() {
2021-11-02 23:44:28 -05:00
})
}