I want to get user input(specifically float input) without needing to click enter. This is in python. Thx.
Sorry if I sound stupid. I am very new to python and very bad. I just want to make a regular button that will do something if clicked. Like make a var
What I mean is like cookie clicker. When you click the cookie it's like a button and it adds one to your score. Also, is there a way to make it bounce
AlexanderTarn It depends on what you are using to make the image (turtle, tkinter, etc.) but the best way to do it is by first making the image, and then when the mouse is clicked over the result it will return the coordinates, if the coordinates are in the image then do whatever like cookie += 13 years ago
Nemoiscool You can add a div with a background image inside the button, then give the button a style of no background color, no border, etc. However, this is not how I would do it. I would recommend skipping the button all together, just use a document.querySelector to get a div, which div has a background image. Then add a document.addEventListener("click",yourFunction()).3 years ago