From 2677e5c0cddde1f3bc0aadbc60ccf000864b66de Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 Sep 2025 09:25:10 -0500 Subject: fixes. needs a refactor --- doGui.go | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doGui.go (limited to 'doGui.go') diff --git a/doGui.go b/doGui.go new file mode 100644 index 0000000..38973a5 --- /dev/null +++ b/doGui.go @@ -0,0 +1,31 @@ +// Copyright 2017-2025 WIT.COM Inc. All rights reserved. +// Use of this source code is governed by the GPL 3.0 + +package main + +// An app to submit patches for the 30 GO GUI repos + +import ( + "os" + + "go.wit.com/gui" + "go.wit.com/lib/gadgets" + "go.wit.com/log" +) + +func doGui() { + win := gadgets.NewGenericWindow("testing", "Current Conversations") + win.Custom = func() { + log.Warn("MAIN WINDOW CLOSE") + gui.StandardExit() + os.Exit(0) + } + + grid := win.Group.RawGrid() + + grid.NewLabel("label worked") + grid.NextRow() + + grid.NewButton("more", func() { + }) +} -- cgit v1.2.3