diff options
| author | Jeff Carr <[email protected]> | 2021-10-06 11:17:43 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-06 11:17:43 -0500 |
| commit | 883159b940e711fbd3560edff8fcc3a2c2f68612 (patch) | |
| tree | a6405d455cbde7a72fdb7bcee56ab225f308d971 /gui-example | |
| parent | b40030a6b11a74a0ba1cb34d1eb12d49a3d3ed44 (diff) | |
EXAMPLE: further improvements to the example
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui-example')
| -rw-r--r-- | gui-example/Makefile | 4 | ||||
| -rw-r--r-- | gui-example/main.go | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gui-example/Makefile b/gui-example/Makefile index b705093..5028ebd 100644 --- a/gui-example/Makefile +++ b/gui-example/Makefile @@ -1,5 +1,5 @@ run: build - ~/go/bin/gui-example + ./gui-example build: - GO111MODULE="off" go install + GO111MODULE="off" go build diff --git a/gui-example/main.go b/gui-example/main.go index f3e4c48..1ff286d 100644 --- a/gui-example/main.go +++ b/gui-example/main.go @@ -16,8 +16,8 @@ func customExit(gw *gui.GuiWindow) { func main() { log.Println("starting my Control Panel") - gui.Config.Width = 1000 - gui.Config.Height = 400 + gui.Config.Width = 800 + gui.Config.Height = 300 gui.Config.Exit = customExit go gui.Main(initGUI) @@ -37,7 +37,7 @@ func watchGUI() { time.Sleep(time.Second) if i == 3 { log.Println("Sending ExampleWindow to gui.Queue()") - gui.Queue(gui.ExampleWindow) + gui.Queue(gui.DebugWindow) } } } |
