Difference between revisions of "Intro to Tkinter"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
* Some version of Python. The class will be taught using Python 2.7.X, but any more-recent version of Python (2.6.X, 3.3.X) should work. | * Some version of Python. The class will be taught using Python 2.7.X, but any more-recent version of Python (2.6.X, 3.3.X) should work. | ||
* Tkinter. Be sure to test the installation to make sure that it works correctly. This can be done by typing <pre>import Tkinter</pre> from a Python command line. If that doesn't work you are probably running Python 3.3.X. Try the following instead: <pre>import tkinter</pre>. | * Tkinter. Be sure to test the installation to make sure that it works correctly. This can be done by typing <pre>import Tkinter</pre> from a Python command line. If that doesn't work you are probably running Python 3.3.X. Try the following instead: <pre>import tkinter</pre>. | ||
− | * Pillow. This package is a friendly fork of the Python Imaging Library (PIL), which is no longer being maintained. Again, this can be tested by typing <pre>import PIL</pre> and <pre>import _imaging</pre> from the Python command line. | + | * Pillow. This package is a friendly fork of the Python Imaging Library (PIL), which is no longer being maintained. Again, this can be tested by typing <pre>import PIL</pre> and if you are using Windows: <pre>import _imaging</pre> from the Python command line. |
If you can't get the aforementioned software working on your laptop, please contact us and we will assist you. | If you can't get the aforementioned software working on your laptop, please contact us and we will assist you. |
Latest revision as of 13:15, 9 September 2014
Overview
This is a ~2 hour class that will introduce Graphical User Interface (GUI) programming using the Python Tkinter module. Topics covered will include:
- The creation of widgets
- Geometry Managers
- Pop-up windows
- Menus, bindings
- GUIs and threads
Please note that beginner-intermediate experience with Python will be assumed. If you are new to Python, be sure to brush-up before class.
Laptop-preparation Instructions
This course will feature in-class hands-on work, to be performed on your laptop. Before coming to the class, please ensure that the following are installed on your laptop:
- Some version of Python. The class will be taught using Python 2.7.X, but any more-recent version of Python (2.6.X, 3.3.X) should work.
- Tkinter. Be sure to test the installation to make sure that it works correctly. This can be done by typing
import Tkinter
from a Python command line. If that doesn't work you are probably running Python 3.3.X. Try the following instead:import tkinter
. - Pillow. This package is a friendly fork of the Python Imaging Library (PIL), which is no longer being maintained. Again, this can be tested by typing
import PIL
and if you are using Windows:import _imaging
from the Python command line.
If you can't get the aforementioned software working on your laptop, please contact us and we will assist you.