summaryrefslogtreecommitdiff
path: root/gocui/checkbox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 23:39:03 -0600
committerJeff Carr <[email protected]>2024-01-17 23:39:03 -0600
commita0baba0821441d9cf38f0b33fe12fb96925c6236 (patch)
tree2aece2a890c66c36b08524e117753817078ee58c /gocui/checkbox.go
parentbee272651ad38453aef27f098513f7be652c39bf (diff)
new paths
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gocui/checkbox.go')
-rw-r--r--gocui/checkbox.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/gocui/checkbox.go b/gocui/checkbox.go
index 18dd8fa..76b4377 100644
--- a/gocui/checkbox.go
+++ b/gocui/checkbox.go
@@ -1,13 +1,13 @@
package main
import (
-// "github.com/awesome-gocui/gocui"
- "go.wit.com/gui/widget"
+ // "github.com/awesome-gocui/gocui"
+ "go.wit.com/lib/widget"
)
func (n *node) setCheckbox(b any) {
w := n.tk
- if (n.WidgetType != widget.Checkbox) {
+ if n.WidgetType != widget.Checkbox {
return
}
if widget.GetBool(b) {
@@ -20,13 +20,13 @@ func (n *node) setCheckbox(b any) {
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
+ // 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
-// }
+ // if w.frame {
+ // w.realWidth += me.FramePadW
+ // w.realHeight += me.FramePadH
+ // }
n.deleteView()
n.showView()