I have problem in which i cant make 2 buttons show up on the screen at once with this code
import ui
v = ui.View()
v.frame = (0,0,400,400)
v.name = 'test'
b = ui.Button()
b.title = 'use'
b.background_color = 'white'
b.border_color = 'blue'
b.border_width = 1
b.corner_radius = 5
b.frame = (10,10,100,32)
ba = ui.Button()
b.title = 'buy'
b.background_color = 'white'
b.border_color = 'blue'
b.border_width = 1
b.corner_radius = 5
b.frame = (110,10,100,32)
a = ''
def tap(sender):
a = sender.title
print(a)
b.action = tap
v.add_subview(ba)
v.add_subview(b)
v.present('sheet')
When i open the ui it only shows the button for the variable ba and doesnt show the variable b for the first button i made
Please tell me if i am doing something wrong or how to fix it