summaryrefslogtreecommitdiff
path: root/eventBindings.go
diff options
context:
space:
mode:
Diffstat (limited to 'eventBindings.go')
-rw-r--r--eventBindings.go19
1 files changed, 11 insertions, 8 deletions
diff --git a/eventBindings.go b/eventBindings.go
index 3235867..d32f1b2 100644
--- a/eventBindings.go
+++ b/eventBindings.go
@@ -11,7 +11,6 @@ import (
"github.com/awesome-gocui/gocui"
"go.wit.com/log"
"go.wit.com/toolkits/tree"
- "go.wit.com/widget"
)
// register how the 'gocui' will work as a GO toolkit plugin
@@ -145,6 +144,8 @@ var notsure *guiWidget
// use this to test code ideas
func theNotsure(g *gocui.Gui, v *gocui.View) error {
log.Info("got keypress 2. now what?")
+ wRoot := me.treeRoot.TK.(*guiWidget)
+ wRoot.redoWindows(0, 0)
// closes anything under your mouse
w, h := g.MousePosition()
if notsure == nil {
@@ -152,19 +153,21 @@ func theNotsure(g *gocui.Gui, v *gocui.View) error {
notsure = addDropdownTK(-118)
notsure.makeTK([]string{"apple", "pear"})
}
- notsure.MoveToOffset(w+10, h+10)
+ notsure.MoveToOffset(w+2, h+1)
// notsure.SetText("theNotsure")
notsure.drawView()
notsure.Show()
- for _, tk := range findByXY(w, h) {
- // vx0, vy0, vx1, vy1, err := g.ViewPosition("msg")
- log.Log(GOCUI, "verify rect:", tk.v.Name())
- tk.verifyRect()
+ /*
+ for _, tk := range findByXY(w, h) {
+ // vx0, vy0, vx1, vy1, err := g.ViewPosition("msg")
+ log.Log(GOCUI, "verify rect:", tk.v.Name())
+ tk.verifyRect()
- if tk.node.WidgetType == widget.Stdout {
+ if tk.node.WidgetType == widget.Stdout {
+ }
}
- }
+ */
return nil
}