add some more widgets

This commit is contained in:
Jeff Carr 2024-01-16 21:00:04 -06:00
parent 8af3f2e105
commit 433a517e4f
1 changed files with 22 additions and 3 deletions

25
main.go
View File

@ -21,9 +21,28 @@ func main() {
func helloworld() {
window := myGui.NewWindow("hello world")
box := window.NewBox("bw vbox", false)
group := box.NewGroup("foo bar")
group.NewButton("hello", func() {
box := window.NewBox("vbox", false)
group := box.NewGroup("groupy")
grid := group.NewGrid("gridiron", 2, 1)
grid.NewButton("hello", func() {
log.Println("world")
})
grid.NewButton("in", func() {
log.Println("out")
})
grid.NewLabel("apple")
dd := grid.NewDropdown().SetProgName("COMPUTERS")
dd.AddText("Atari 500")
dd.AddText("Beagleboard")
dd.AddText("Unmatched Rev B")
dd.AddText("asldjf")
dd.AddText("asdjf")
dd.AddText("a1jf")
dd.AddText("jf")
cb := grid.NewCombobox().SetProgName("COLORS")
cb.AddText("Cyan")
cb.AddText("Magenta")
cb.AddText("Yellow")
}