Hi there,
So i have a quick question: How can i save text a user inputted into LineEdit and save that text to a variable within the script?
I looked at some documentation and saw that you can save the text to another file:
But when i do that it removes the variable i set in the txt file.
Thanks,
salm2s
So i have a quick question: How can i save text a user inputted into LineEdit and save that text to a variable within the script?
I looked at some documentation and saw that you can save the text to another file:
Code:
def save_config(self):
with open('config.txt', 'w') as f:
url_text = self.lineEdit.text()
f.write(url_text)
Thanks,
salm2s