diff options
| author | Jeff Carr <[email protected]> | 2019-05-12 23:02:39 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-12 23:02:39 -0700 |
| commit | 138eff381a675480678ad636b3ceb68819760536 (patch) | |
| tree | 3fc7247139d67f64fe1eb2941fee728893f6af29 /examples.go | |
| parent | 12e37b4d1faf3f19a4a5149a94b9fb613d7f9793 (diff) | |
more code cleanup
Signed-off-by: Jeff Carr <[email protected]>
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) +} |
