Answer the question
In order to leave comments, you need to log in
tkinter. The data is lost when the program is closed. How to fix it?
Good afternoon. I decided to write a program that could store key-value data (in my case, login:password) that the user entered or displays a value for him if he (already in another department) enters the key.
The essence of the problem is that the data is saved only for the duration of the program, that is, if you close the program, the previously entered data will be deleted. How to fix this and make "reusable" data saving? Thank you.
The code itself:
Answer the question
In order to leave comments, you need to log in
Read about ways to store data in python. In your case, you can use json as an alternative . And respect pep8 for a bit.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question