This series of tutorials are fully written in the form of code. The goal is that readers can understand the meaning of the Code by reading the code and comments.
However, readers need to possess the following skills:
- Familiar with the basics of Python language, if not, first look at the python tutorial, the English official (http://docs.python.org/tut/tut.html );
- Have a certain understanding of Interface Programming, and know the basic concepts;
- If you are interested in TK, don't think she is an outdated technology. If you lose your interest in learning, you will be unable to complete it;
- Do not use this tutorial using Ctrl + C/Ctrl + V (although it can be run directly in this way). If you enter it yourself, you will find that you will also make such an error;
- Install python2.5 and confirm that the tkinter module is installed (installed by default, if you do not force remove it), download python2.5 (http://www.python.org/download );
- If you do not understand the content in the tutorial, do not force yourself to jump over and continue to the next content.
Features of the tkinter tutorial series:
- He is not a text polishing article, it is all code, and the author uses annotations to explain it when necessary;
- This section describes components. Each component is divided into different examples. Each example can be used separately, with serial numbers;
- Each example uses the "comment + Serial Number" format to indicate the start. The start of the next example is the end of the previous example;
- All use structured programming (SP), without the concept of object-oriented (OO );
- Basically, all tkinter controls are included. According to the usage of each control, the attributes and methods are selectively introduced, but not all of them are described, for more information, see tkinter's official reference (http://www.pythonware.com/library/tkinter/introduction );
- The example is not perfect, and some examples are not completed according to the tkinter reference, because the author does not understand :(
Reference books: http://www.pythonware.com/library/tkinter/introduction/. if a conflict exists, refer to tkinterreference.
Finally, I wish you a happy TK!