NewbieCoder
Jun 01, 2019 - 04:04
Im a noob and im not really sure how to use the ui.frame command correctly to assign where a button will be located. Here is a case to show a bit further into my question...
import ui
v = ui.View()
v.frame = (0,0,400,400)
v.name = 'test'
b = ui.Button()
b.title = 'My Title'
b.background_color = 'white'
b.border_color = 'blue'
b.border_width = 1
b.corner_radius = 5
b.frame = (10,10,100,32)
a = ''
def tap(sender):
a = sender.title
print(a)
b.action = tap
v.add_subview(b)
v.present('sheet')