Nice to meet you.
I’m a beginner for using Python3.
(I’m a Japanese high school student, so if you aware of some grammatically mistakes, don’t mind.)
I’m developing a system, using UI on Pythonista3 for iOS.
I wish that the program works like this.
-procedure-
1.Start UI module
2.Select an item from the ‘tableview’ ‘s list.
3.Get the value of the selected item on procedure2.
4.Write the value acquired in procedure3 as character string in the specified text file and save it.
I wrote like ↓, but it didn’t work collectively.
Could you tell me what is different and how to rewrite it?
Then, I don’t understand how to use the ‘Navigation View’. (I searched on the Internet...) Can you tell me how to use or tell me the detailed website about this?
import ui
def tablewview1(sender):
sel = sender.selected_row
item= sender.items[sel]
label.text = item
f = open('test.txt', 'w', encoding= 'utf-8')
f.write('label.item')
f.close()
nav = ui.NavigationView(view)
tableview = nav['tableview1']
nav.present()