summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-12-12 16:44:32 -0500
committerPietro Gagliardi <[email protected]>2015-12-12 16:44:32 -0500
commit302bd0313c55d32929bc6013929257ca388228d6 (patch)
treecc9b4c18952880392c127a1b2f7bd825a5ab91e7 /zz_test.go
parenta881849d8a21fe627fb7156e41499c74be1ac945 (diff)
Added Entry.
Diffstat (limited to 'zz_test.go')
-rw-r--r--zz_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/zz_test.go b/zz_test.go
index 6caf95f..d35ba1a 100644
--- a/zz_test.go
+++ b/zz_test.go
@@ -11,10 +11,11 @@ func TestIt(t *testing.T) {
Quit()
return true
})
- c := NewEditableCombobox()
- c.Append("Item 1")
- c.Append("Item 2")
- w.SetChild(c)
+ e := NewEntry()
+ e.OnChanged(func(*Entry) {
+ w.SetTitle(e.Text())
+ })
+ w.SetChild(e)
w.Show()
})
if err != nil {