I cant exactly pinpoint what im doing wrong here but im in trouble again)))))
The a = sender.title line is being completely ignored and nothing shows up in the console
v = ui.View()
v.frame = (0,0,400,400)
v.name = 'test'
b = ui.Button()
b.title = 'use'
b.action = 'tap'
b.background_color = 'white'
b.border_color = 'blue'
b.border_width = 1
b.corner_radius = 5
b.frame = (10,10,100,32)
v.add_subview(b)
ba = ui.Button()
ba.title = 'buy'
ba.action = 'tap'
ba.background_color = 'white'
ba.border_color = 'blue'
ba.border_width = 1
ba.corner_radius = 5
ba.frame = (110,10,100,32)
v.add_subview(ba)
a = ''
v.present(“sheet”)
while 0 == 0:
def tap(sender):
'@type sender: ui.Button'
a = sender.title
print(a)