summaryrefslogtreecommitdiff
path: root/doGui.go
blob: 38973a5bccdc0029e2a2800e82c3fb7faf9ad4fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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() {
	})
}