Hello all, totally new to Python and Pythonista although I do have experience of AppleScript.
First up kudos to Ole, fantastic app.
Second up is my head scratcher. I'm trying to create a UI with a grid of uniquely identifiable text fields. I don't think I can use a PYUI as I need a running digital clock on the screen at the same time, so I figured I would need to create the UI screen in the code.
My code to make the first column makes a text box for each iteration through the loop but only the last one displays. What can I add/change to get the earlier ones to display?
Thanks, Alan
import ui
def fieldEdited(sender):
t=view[fieldName].text
print t
for loop in range(1,11):
fieldName='field' + str(loop)
view = ui.View()
view.background_color = 'white'
field = ui.TextField()
field.name='field'+str(loop)
field.text= fieldName
field.center = (70,(90+loop*30))
field.height=27
field.width=82
field.action = fieldEdited
view.add_subview(field)
view.present(style='full_screen',hide_title_bar='True')