add a generic function to add a box as a new tab
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
7ec12bbfc8
commit
7d6a2aba71
6
gui.go
6
gui.go
|
@ -248,6 +248,12 @@ func AddChoosersDemo() {
|
||||||
tabcount += 1
|
tabcount += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func AddNewTab(newbox ui.Control) {
|
||||||
|
maintab.Append("Cloud Info", newbox)
|
||||||
|
maintab.SetMargined(tabcount, true)
|
||||||
|
tabcount += 1
|
||||||
|
}
|
||||||
|
|
||||||
// This hangs on GTK
|
// This hangs on GTK
|
||||||
func AddEntriesDemo() {
|
func AddEntriesDemo() {
|
||||||
maintab.Append("Group examples", makeGroupEntries())
|
maintab.Append("Group examples", makeGroupEntries())
|
||||||
|
|
Loading…
Reference in New Issue