Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Append to a tui.Box invalid #155

Open
foolishway opened this issue Jan 8, 2020 · 0 comments
Open

Append to a tui.Box invalid #155

foolishway opened this issue Jan 8, 2020 · 0 comments

Comments

@foolishway
Copy link

This is my code:

history.Append(tui.NewHBox(
		tui.NewLabel(time.Now().Format("15:04")),
		tui.NewPadder(1, 0, tui.NewLabel(fmt.Sprintf("<%s>", "john"))),
		tui.NewLabel(message),
		tui.NewSpacer(),
	))

In fact I am trying the "chat" example, and read data from a TCP connection, then write to the "history", but it not works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant