Skip to content
Advertisement

STR going into terminal instead of GUI text box

I am trying to learn how to make a GUI so I decided to practice making a calculator. I have all of the number buttons and the ‘+’, ‘-‘, ‘*’, ‘/’ buttons working. I got stuck at the decimal button. When ever I press the button in the GUI it goes into my terminal instead of the text box.

Here is the code:

JavaScript

Advertisement

Answer

That is beacuse you have coded it in such a way

JavaScript

See, button_decimal takes a lambda that will print to the console

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement