I am using a text file as a way to save several inputs from an app build in Kivy. I want to display these inputs later on as a summary in a textinput-widget with the inputs as the starting text.
The widget is created in the .kv
file and uses text: root.text
def read():
with open(f"./drafts/draft.txt", "r") as file: #Does not read out current order but old order file
text = file.read()
return text
text = read()
I can not seem to get the current state of the file displayed. It always just shows the version of the text file when the program starts, even through the file gets modified.
Is it possible to update the text variable, and/or display the current state of the text file in the text widget.