Re: extra + character showing in gui textfield

2019-08-29 Thread Alexander Burger
Hi Grant, > Thanks Alex. Using a NumField does indeed fix it. Considering that I want to > display a message like "You cheated!" as well if the user clicks too many > times, > would I just use a different gui component then? Yes, then +TextField is fine. > I was trying a pretty naive wrapping o

Re: extra + character showing in gui textfield

2019-08-29 Thread Grant Shangreaux
Thanks Alex. Using a NumField does indeed fix it. Considering that I want to display a message like "You cheated!" as well if the user clicks too many times, would I just use a different gui component then? I was trying a pretty naive wrapping of the repl interface to make the gui and thought I

Re: extra + character showing in gui textfield

2019-08-28 Thread Alexander Burger
Hi Grant, > It works fine, except there is suddenly an extra "+" character after clicking > a button for the second time. I think it is just a wrong class: >(gui '(+Style +Var +TextField) "guess" '*Guess) As the value of '*Guess' is a number, it needs '+NumField' instead of '+TextField'. ☺

extra + character showing in gui textfield

2019-08-28 Thread Grant Shangreaux
Hello all, I'm trying to make a very simple tutorial stepping through elements of PicoLisp. there's a little guessing game first in the repl, and now i'm trying to add the gui. It works fine, except there is suddenly an extra "+" character after clicking a button for the second time. Any ide