janAaron
Nov 02, 2014 - 14:42
Hi everyone!
I wrote this ui code, but the button isnt showing up. What's up?
Here's the code:
import ui
def pressed (sender):
sender.tint_color = 1.00, 0.00, 0.00
view = ui.View()
view.name = "tic tac toe"
view.background_color = 0.90, 0.90, 0.90
view.present("sheet")
button = ui.Button()
button.flex = "LRTB"
button.action = pressed
view.add_subview(button)
button.center = (view.width *0.5,view.height *0.5)
button.title = "nothing"
button.background_image = ui.Image('Ant')