Added popups

This commit is contained in:
2023-01-12 12:51:42 -05:00
parent 519e0b9c6b
commit 26c1dc062b
6 changed files with 132 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/elements/basic"
import "git.tebibyte.media/sashakoshka/tomo/elements/testing"
import "git.tebibyte.media/sashakoshka/tomo/elements/layouts"
import _ "git.tebibyte.media/sashakoshka/tomo/backends/x"
@@ -16,9 +17,9 @@ func run () {
container := basic.NewContainer(layouts.Horizontal { true, true })
window.Adopt(container)
container.Adopt(basic.NewTest(), true)
container.Adopt(testing.NewMouse(), true)
container.Adopt(basic.NewLabel("<- left\nright ->", false), false)
container.Adopt(basic.NewTest(), true)
container.Adopt(testing.NewMouse(), true)
window.OnClose(tomo.Stop)
window.Show()