How to get a object value from custom view class
Hello, all pythonista in the world.
I'm making a sample program which tests touch_began() and touch_end() methods by using custom view object on pyui file.
I implemented MyView class in python file and touch methods worked well(Following program).
If I put a label object on the pyui file, how can I get a value of label object in touch method?
class MyView (ui.View):
def touch_began(self, touch):
def touch_ended(self, touch): print('end')
v1.present(style = 'full_screen', orientations = ['landscape'])
As I told, touch.pyui has a cutom view object connected to MyView class and label object. I want to print label object's text value when touch_began() is called. Could you please tell me how to implement?
@cvp Thank you so much!