Python4Kids New Tutorial: Starting our Config Editor
Feb 22, 2012, 10:04 (0 Talkback[s])
(Other stories by Brendan Scott)
[ 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."
Complete Story
Related Stories:
- Python4Kids New Tutorial: Recap Part 2 - Tkinter(Feb 14, 2012)
- Python4Kids New Tutorial: Welcome back, Class Recap(Feb 08, 2012)
- Python4Kids: Classy Methods, a Sense of Self (Classes Part 2)(Oct 17, 2011)
- Python4Kids: New Tutorial - Classy Attributes(Sep 27, 2011)
- Python4Kids New Tutorial: Side Track � Global and Local Variables(Sep 03, 2011)
- Python4Kids: New Tutorial - Really GUI (more on Buttons, images and handlers)(Aug 22, 2011)
- Python4Kids: New Tutorial - Using Images in the GUI(Aug 09, 2011)
- Python4Kids: New Tutorial - Tkinter tinkering (Graphical User Interfaces)(Jul 19, 2011)
- Python4Kids: New Tutorial - Format Strings and Silly Sentences(Jun 16, 2011)