diff options
| author | Jeff Carr <[email protected]> | 2024-01-15 17:22:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-15 17:22:51 -0600 |
| commit | db86b09070f2ffd69dda9354aff7c9383739a8e0 (patch) | |
| tree | 276c44f3d8d4f9673850c273d402375cac2d3d8e /linuxstatus/draw.go | |
| parent | 0fcbdca8965cf97c0261b79a6e04e71b729f66b3 (diff) | |
move linuxstatus into separate repov0.12.3
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/draw.go')
| -rw-r--r-- | linuxstatus/draw.go | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/linuxstatus/draw.go b/linuxstatus/draw.go deleted file mode 100644 index 1d5e591..0000000 --- a/linuxstatus/draw.go +++ /dev/null @@ -1,37 +0,0 @@ -// This creates a simple hello world window -package linuxstatus - -import ( - "go.wit.com/gui/gadgets" -) - -// creates the actual widgets. -// it's assumed you are always passing in a box -func draw(ls *LinuxStatus) { - if ! ls.Ready() {return} - ls.group = ls.window.Box().NewGroup("What Linux Knows It Is") - - ls.grid = ls.group.NewGrid("gridnuts", 2, 2) - - ls.hostnameStatus = gadgets.NewOneLiner(ls.grid, "status") - ls.hostname = gadgets.NewOneLiner(ls.grid, "hostname -f") - ls.hostshort = gadgets.NewOneLiner(ls.grid, "hostname -s") - ls.domainname = gadgets.NewOneLiner(ls.grid, "domain name") - ls.resolver = gadgets.NewOneLiner(ls.grid, "nameservers =") - ls.resolver.Set("TODO") - ls.uid = gadgets.NewOneLiner(ls.grid, "UID =") - ls.IPv4 = gadgets.NewOneLiner(ls.grid, "Current IPv4 =") - ls.IPv6 = gadgets.NewOneLiner(ls.grid, "Current IPv6 =") - ls.workingIPv4 = gadgets.NewOneLiner(ls.grid, "Real IPv4 =") - ls.workingIPv6 = gadgets.NewOneLiner(ls.grid, "Real IPv6 =") - // ls.nics = gadgets.NewOneLiner(ls.grid, "network intefaces =") - - ls.grid.NewLabel("interfaces =") - ls.Interfaces = ls.grid.NewCombobox("Interfaces") - - ls.speed = gadgets.NewOneLiner(ls.grid, "refresh speed =") - ls.speedActual = gadgets.NewOneLiner(ls.grid, "refresh speed =") - - ls.grid.Margin() - ls.grid.Pad() -} |
