Intro to Tkinter

From oldwiki.scinet.utoronto.ca
Jump to navigation Jump to search

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

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 can also try
    import tkinter
    .
  • Python Imaging Library (PIL). Again, this can be tested by typing
    import PIL
    from the Python command line.

If you can't get any of the aforementioned software working on your laptop, please contact us and we will assist you.