summaryrefslogtreecommitdiff
path: root/gocui/checkbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'gocui/checkbox.go')
-rw-r--r--gocui/checkbox.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/gocui/checkbox.go b/gocui/checkbox.go
deleted file mode 100644
index 76b4377..0000000
--- a/gocui/checkbox.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package main
-
-import (
- // "github.com/awesome-gocui/gocui"
- "go.wit.com/lib/widget"
-)
-
-func (n *node) setCheckbox(b any) {
- w := n.tk
- if n.WidgetType != widget.Checkbox {
- return
- }
- if widget.GetBool(b) {
- n.value = b
- n.tk.label = "X " + n.label
- } else {
- n.value = b
- n.tk.label = " " + n.label
- }
- t := len(n.tk.label) + 1
- w.gocuiSize.w1 = w.gocuiSize.w0 + t
-
- // w.realWidth = w.gocuiSize.Width() + me.PadW
- // w.realHeight = w.gocuiSize.Height() + me.PadH
-
- // if w.frame {
- // w.realWidth += me.FramePadW
- // w.realHeight += me.FramePadH
- // }
-
- n.deleteView()
- n.showView()
-}