Answer the question
In order to leave comments, you need to log in
PyQt5,Pyside2: How to save data after closing?
I am making a diary app. The user writes his schedule, and the program must remember it.
For the sake of experiment, I filled all the Lineedit widgets with the word "FILL" and wrote this piece of code:
self.monday_64 = QLineEdit(self.monday_main_2)
a = self.monday_64.text()
f = open('text.txt', 'w')
f.write(a)
f.close()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question