Jun-30-2019, 07:39 PM
Hello,
I am trying to learn how to code in python, and I found an amazing website called code club. However I have encountered a problem which is that it doesn't tell me how to get the program to understand where the mouse is and update various thing depending on where the mouse is, and weather it has clicked or not. basically I want to know how to program a button. I surched this up online and found that you need to import tinkerer, or something like that. So I copy and pasted some code into a trinket project (everything I have done in trinket has worked by the way) but it said that you couldn't import tinkerer for some reason.
I don't really know what to do, and would really appreciate it if someone could help me.
what I though might work though, is using if statements of say "if the mouse here then do this, else do nothing" but I don't know how to phase that nor weather it is even possible. so please help me if you know what the problem is. :)
I am trying to learn how to code in python, and I found an amazing website called code club. However I have encountered a problem which is that it doesn't tell me how to get the program to understand where the mouse is and update various thing depending on where the mouse is, and weather it has clicked or not. basically I want to know how to program a button. I surched this up online and found that you need to import tinkerer, or something like that. So I copy and pasted some code into a trinket project (everything I have done in trinket has worked by the way) but it said that you couldn't import tinkerer for some reason.
I don't really know what to do, and would really appreciate it if someone could help me.
what I though might work though, is using if statements of say "if the mouse here then do this, else do nothing" but I don't know how to phase that nor weather it is even possible. so please help me if you know what the problem is. :)