parent
43c4f11352
commit
80c56d12f4
|
@ -2,3 +2,4 @@
|
||||||
wit-new-machine
|
wit-new-machine
|
||||||
/files/*
|
/files/*
|
||||||
/*.deb
|
/*.deb
|
||||||
|
/resources/toolkits/
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -8,6 +8,7 @@ VERSION = $(shell cat resources/VERSION)
|
||||||
build:
|
build:
|
||||||
git pull
|
git pull
|
||||||
# reset
|
# reset
|
||||||
|
cp ~/go/src/git.wit.org/wit/gui/toolkit/*.so resources/toolkits/
|
||||||
GO111MODULE="off" go build -v
|
GO111MODULE="off" go build -v
|
||||||
./wit-new-machine
|
./wit-new-machine
|
||||||
|
|
||||||
|
@ -85,6 +86,12 @@ deb:
|
||||||
cd debian && make
|
cd debian && make
|
||||||
-wit mirrors
|
-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
|
# From: https://github.com/liweiyi88/gosnakego # Sept 11 2022
|
||||||
#
|
#
|
||||||
# .PHONY: install release
|
# .PHONY: install release
|
||||||
|
|
12
gui.go
12
gui.go
|
@ -53,6 +53,18 @@ func drawWindow() {
|
||||||
resolv.Dump(true)
|
resolv.Dump(true)
|
||||||
resolv.SetText("hello world\nfoo bar\n")
|
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")
|
rn := newTab.NewGroup("Local Linux Settings")
|
||||||
|
|
||||||
|
|
BIN
resources/tester
BIN
resources/tester
Binary file not shown.
Loading…
Reference in New Issue