more button tests

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-22 21:17:00 -07:00
parent a05d7b4a19
commit e6a8dfdd65
1 changed files with 5 additions and 2 deletions

View File

@ -16,6 +16,9 @@ func main() {
func buttonClick(i int, s string) {
log.Println("test4 buttonClick() i, s =", i, s)
if (s == "BACK") {
gui.Data.State = "splash"
}
if (gui.Data.State == "splash") {
gui.ShowAccountQuestionTab()
gui.Data.State = "account1"
@ -34,8 +37,8 @@ func watchGUI() {
time.Sleep(2000 * time.Millisecond)
for {
log.Println("Sleep()", gui.Data.State)
time.Sleep(200 * time.Millisecond)
log.Println("Sleep() in watchGUI() gui.Data.State =", gui.Data.State)
time.Sleep(2000 * time.Millisecond)
if (gui.Data.State == "kill") {
log.Println("gui.State = kill")