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.
How to get a touch position?
-
How to get the touch position on ui.View() ? Without using any library exept “ui” ?
-
@Raymond by subclassing ui.View.
See Examples/User Interface/Sketch.py
import ui class MyView(ui.View): def touch_began(self, touch): x,y = touch.location self.name = f'x={x} y={y}' v = MyView() v.background_color = 'white' v.present('fullscreen')
-
@Raymond did my post answer to your question?
-
Yes Yes Yes!!!! Thank you very much dude !!!
-
cvp