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