These are Python programs that I wrote (sometimes in collaboration with
Wen-Hsin Chang) to demonstrate various aspects of GUI programming under
Tkinter
| File | Description | Formats |
| ex1.py | A very basic, Hello-World application. |  |
| ex2.py | A very basic, Hello-World application, using widgets. |  |
| ex3.py | A very basic, Hello-World application, using a class. |  |
| ex4.py | A basic example showing how to create various widgets and respond to user events. |  |
| calc.py | A simple floating point calculator used to demontrate various Tkinter-related topics. It has a nice
interface (actually based on an actual Canon calculator I own), and responds to various user
events. |  |
| calctest.py | A small example using calc.py demonstrating how to do
Unit Testing with Tkinter GUIs. |  |
| ScrollList.py | A small application showing how to use a Listbox widget with two Scrollbars in a real applications. |  |
| TkVarDemo.py | A small demo application which demonstrates how to use Tk variables, as well
as validate values when using such variables. |  |
| place_example.py | A small demo using the Place geometry manager |  |
| grid_example.py | A small demo using the Grid geometry manager |  |
| pack_example.py | A small demo using the Pack geometry manager |  |
| tkdemos_unix.tar.gz | A collection of examples I used in my Tkinter presentation
in September 2001. |  |
| tkdemos_win.zip | MS_Windows version of tkdemos, a collection of examples I used in my Tkinter presentation
in September 2001. |  |
In the tkdemos collection: |
|---|
| An example showing how to draw and manipulate canvas lines. Shows how to drag canvas items. |  |
| A demontration of event binding capabilities in Tkinter. Requires scrolledtex.py |  |
| A dynamic demontration utility for the Pack geometry manager. |  |
| A dynamic demontration utility for the Grid geometry manager. Requires
toolbar.py |  |
| A static demontration utility for the Place geometry manager. |  |
| A static demontration utility for the Place geometry manager. |  |
| A very thorough example demonstrating the numerous capabilities of the
Tkinter Canvas widget. |  |