demo/demo.go
func (sw *secondWindow) Init(w *ttk.Window) {
	sw.l = w.AddLabel(2, 2, "hello world from #2")
	sw.l.SetAttributes(ttk.Attributes{
		Fg: termbox.ColorRed,
		Bg: termbox.ColorCyan,
	})

	// edit box
	var s string = "abc"
	sw.e = w.AddEdit(2, 14, -2, &s)
	ttk.Flush()
}
func (sw *secondWindow) Init(w *ttk.Window) {
	sw.l = w.AddLabel(2, 2, "hello world from #2")
	sw.l.SetAttributes(ttk.Attributes{
		Fg: termbox.ColorRed,
		Bg: termbox.ColorCyan,
	})

	// edit box
	var s string = "abc"
	sw.e = w.AddEdit(2, 14, -2, &s)
	ttk.Flush()
}
// called from queue