Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Creating touch location variables
-
Hello!
I would like to initialize a variable that functions just like the one you get from touch.location (e.g. you can access the x coordinate with touch.location.x).
If i initialize the variable like this
x = [150, 200]
it will not work with functions that only work with touch.locations.
How can I create variables like this programmatically? -
You could try something like
ui.Point(150, 200)
. -
Works perfectly, thanks!