summaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-25 15:06:51 -0500
committerPietro Gagliardi <[email protected]>2014-02-25 15:06:51 -0500
commit06fa3a5174e02ebf1061e67e60530c6d519eb9c1 (patch)
tree4ee67ce5dc7aa8d10152915a422f5adc6ad6d9ba /main_test.go
parent04ae299ef0918ad1e0c4482b71c00b49484924bb (diff)
Added password entry fields; they are the alternate mode of LineEdit.
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/main_test.go b/main_test.go
index c778d2a..4960dd3 100644
--- a/main_test.go
+++ b/main_test.go
@@ -26,7 +26,8 @@ func TestMain(t *testing.T) {
incButton := NewButton("Inc")
decButton := NewButton("Dec")
sincdec := NewStack(Horizontal, incButton, decButton)
- s0 := NewStack(Vertical, s2, c, cb1, cb2, e, s3, pbar, sincdec)
+ password := NewPasswordEdit()
+ s0 := NewStack(Vertical, s2, c, cb1, cb2, e, s3, pbar, sincdec, password)
lb1 := NewListbox(true, "Select One", "Or More", "To Continue")
lb2 := NewListbox(false, "Select", "Only", "One", "Please")
i := 0
@@ -55,11 +56,12 @@ mainloop:
case <-w.Closing:
break mainloop
case <-b.Clicked:
- err = w.SetTitle(fmt.Sprintf("%v | %s | %s | %s",
+ err = w.SetTitle(fmt.Sprintf("%v | %s | %s | %s | %s",
c.Checked(),
cb1.Selection(),
cb2.Selection(),
- e.Text()))
+ e.Text(),
+ password.Text()))
if err != nil {
panic(err)
}