diff --git a/.gitignore b/.gitignore index 36b60a6..7941352 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ wit-new-machine /files/* /*.deb +/resources/toolkits/ diff --git a/Makefile b/Makefile index 00f0baf..28347f9 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ VERSION = $(shell cat resources/VERSION) build: git pull # reset + cp ~/go/src/git.wit.org/wit/gui/toolkit/*.so resources/toolkits/ GO111MODULE="off" go build -v ./wit-new-machine @@ -85,6 +86,12 @@ deb: cd debian && make -wit mirrors +init: + git config pull.rebase false + mkdir ~/go/src/git.wit.org/jcarr/ + cd ~/go/src/git.wit.org/jcarr/ && git clone https://git.wit.org/jcarr/wit-new-machine.git + # cd ~/go/src/git.wit.org/jcarr/wit-new-machine/ + # From: https://github.com/liweiyi88/gosnakego # Sept 11 2022 # # .PHONY: install release diff --git a/gui.go b/gui.go index 10c1c29..153e596 100644 --- a/gui.go +++ b/gui.go @@ -53,6 +53,18 @@ func drawWindow() { resolv.Dump(true) resolv.SetText("hello world\nfoo bar\n") + g.NewButton("Load 'gocui'", func () { + myGui.LoadToolkit("gocui") + }) + + g.NewButton("Load 'andlabs'", func () { + myGui.LoadToolkit("andlabs") + }) + + g.NewButton("gui.DebugWindow()", func () { + gui.DebugWindow() + }) + ///////////////////////////////////////////////////////////////////////////// rn := newTab.NewGroup("Local Linux Settings") diff --git a/resources/tester b/resources/tester deleted file mode 100755 index 0dadf61..0000000 Binary files a/resources/tester and /dev/null differ