I keep trying to make programs that involve the UI module. But every time I use the UI module, I always end up needing to access what the user inputted in a TextField or TextView. I can't figure out how to do this.
Here is some of my code.
import ui
def savefile():
text1 = ui.TextField("textfield1").text
text2 = ui.TextView("textview1").text
file = open(text1,"a")
file.write(text2)
file.close()