954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Saving in code changes?

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

thomas.jerald
Newbie Poster
1 post since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

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

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: