[ Thanks to Brendan Scott for this
link. ]
“In the last two tutorials we have been revising some things we
had learned earlier about classes and GUIs. I wanted to give you an
example of where you can use Python in practice, so we are going to
do a short program which will use classes and Tkinter ? a
configuration editor for Minecraft servers. We haven?t yet seen all
of the widgets that we will need for this short project, so we will
do it a little slowly.“When people write computer programs they try to write the
program they don?t necessarily know all the relevant details about
how and where it will be run. It is often the case that certain
data needs to be provided that program by the end user. For
example, let?s say you wrote a greeting program which said hello to
the user when they ran it. If the end user?s name was S?ren
Kierkegaard, how would the program know to say ?Hello S?ren?? ? it
wouldn?t. S?ren would need to tell it. What?s more, it would be a
little tedious if S?ren had to keep telling the program what his
name was every time he ran the program, so, ideally, once it was
entered, the program would store the data. One place it could be
stored is in a configuration file.”