add some more widgets
This commit is contained in:
parent
8af3f2e105
commit
433a517e4f
25
main.go
25
main.go
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue