diff options
Diffstat (limited to 'examples.go')
| -rw-r--r-- | examples.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples.go b/examples.go index 64973c9..df9c5b5 100644 --- a/examples.go +++ b/examples.go @@ -8,6 +8,9 @@ import _ "github.com/andlabs/ui/winmanifest" import "github.com/davecgh/go-spew/spew" +var jcarrButton *ui.Button +var jcarrEntry *ui.MultilineEntry + func buttonClick(button *ui.Button) { log.Println("hostname =", config.String("hostname"), button) spew.Dump(button) @@ -200,3 +203,16 @@ func makeDataChoosersPage() ui.Control { return hbox } + +func AddChoosersDemo() { + maintab.Append("Choosers examples", makeDataChoosersPage()) + maintab.SetMargined(tabcount, true) + tabcount += 1 +} + +// This hangs on GTK +func AddEntriesDemo() { + maintab.Append("Group examples", makeGroupEntries()) + tabcount += 1 + maintab.SetMargined(tabcount, true) +} |
