stubbed in tables
This commit is contained in:
parent
ce18af897a
commit
88f6e8519b
5
Makefile
5
Makefile
|
@ -34,10 +34,11 @@ plugin:
|
||||||
cp ../../toolkits/gocui/gocui.so resources/
|
cp ../../toolkits/gocui/gocui.so resources/
|
||||||
|
|
||||||
andlabs: install
|
andlabs: install
|
||||||
forge --gui andlabs
|
forge --gui andlabs --debugger
|
||||||
|
|
||||||
gocui: install
|
gocui: install
|
||||||
forge --gui gocui --gui-verbose >/tmp/forge.log 2>&1
|
# forge --gui gocui --gui-verbose >/tmp/forge.log 2>&1
|
||||||
|
forge --gui gocui --gui-verbose --debugger
|
||||||
|
|
||||||
goimports:
|
goimports:
|
||||||
reset
|
reset
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
/*
|
||||||
|
enables GUI options and the debugger in your application
|
||||||
|
*/
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go.wit.com/lib/debugger"
|
||||||
|
"go.wit.com/log"
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
if debugger.ArgDebug() {
|
||||||
|
log.Info("cmd line --debugger == true")
|
||||||
|
go func() {
|
||||||
|
log.Sleep(2)
|
||||||
|
debugger.DebugWindow()
|
||||||
|
}()
|
||||||
|
}
|
||||||
|
}
|
5
doGui.go
5
doGui.go
|
@ -12,6 +12,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.wit.com/gui"
|
"go.wit.com/gui"
|
||||||
|
"go.wit.com/lib/debugger"
|
||||||
"go.wit.com/lib/gadgets"
|
"go.wit.com/lib/gadgets"
|
||||||
"go.wit.com/lib/gui/shell"
|
"go.wit.com/lib/gui/shell"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
|
@ -203,4 +204,8 @@ func drawWindow(win *gadgets.BasicWindow) {
|
||||||
grid.NewButton("forge ConfigSave()", func() {
|
grid.NewButton("forge ConfigSave()", func() {
|
||||||
me.forge.ConfigSave()
|
me.forge.ConfigSave()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
grid.NewButton("debugger()", func() {
|
||||||
|
debugger.DebugWindow()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue