early init

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-04-23 19:27:42 -05:00
parent 43c4f11352
commit 80c56d12f4
4 changed files with 20 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
wit-new-machine
/files/*
/*.deb
/resources/toolkits/

View File

@ -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

12
gui.go
View File

@ -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")

Binary file not shown.