more button tests
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a05d7b4a19
commit
e6a8dfdd65
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue