Added popups
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user