I am still fairly new to python, and with it being my first object oriented language, I'm taking my time with it... I have been playing with Tkinter, and creating small apps that don't really do a whole lot. Now I'm getting into larger and more complex ones. The question I have is how do I save changes that are made in code, such as configuration changes or if I were to add a tree item or insert some text into a text widget so the next time I were to open the app the changes would be the same? Do I need to create a config file? If so how would I link the two?


Thanks,
Jerald Thomas

Python has a module ConfigParser that makes writing and reading configuration files easier. Look in your Python documentation, there are actual examples there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.