Merge pull request #190 from bcarlsson/fix-demo-example

Fixed example code in presentation demo textview
This commit is contained in:
rivo 2018-11-26 12:10:24 +01:00 committed by GitHub
commit 7bef21fe58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import (
)
const textView1 = `[green]func[white] [yellow]main[white]() {
app := tview.[yellow]NewApplication[white]()
textView := tview.[yellow]NewTextView[white]().
[yellow]SetTextColor[white](tcell.ColorYellow).
[yellow]SetScrollable[white](false).
@ -24,8 +25,7 @@ const textView1 = `[green]func[white] [yellow]main[white]() {
time.[yellow]Sleep[white]([red]200[white] * time.Millisecond)
}
}()
tview.[yellow]NewApplication[white]().
[yellow]SetRoot[white](textView, true).
app.[yellow]SetRoot[white](textView, true).
[yellow]Run[white]()
}`