Advertisement

Event-Driven Programming

  • Kent D. LeeEmail author
Part of the Undergraduate Topics in Computer Science book series (UTICS)

Abstract

Chapter six introduces event-driven programming. In an event-driven program, the program goes to an event queue to find the next event and then calls some code to process that event. Graphical User Interface (GUI) programs operate like this. Chapter six introduces event-driven programming using Tkinter, a graphical user interface library for Python programmers.

A widget is a GUI element that can be placed on the user interface of a windowing program. Tkinter includes support for many widgets including buttons, text boxes, frames, and labels. Layout is another important aspect of GUI programs. This chapter provides examples on how to use these widgets and layout directives. It provides a demonstration of the ideas through the development of a reminder application.

Keywords

Graphical User Interface Menu Item Event Handler Practice Problem Text Entry 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

References

  1. 5.
    Alex Martelli. Python in a Nutshell. A Desktop Quick Reference; 2nd ed. Nutshell handbook. O’Reilly, Sebastopol, CA, 2006. Google Scholar
  2. 9.
    Arild Stubhaug. The Mathematician Sophus Lie. Springer, Berlin, Germany, 2002. zbMATHCrossRefGoogle Scholar
  3. 11.
    Brent B. Welch. Practical programming in Tcl and Tk (3rd ed.). Prentice Hall PTR, Upper Saddle River, NJ, USA, 2000. Google Scholar

Copyright information

© Springer-Verlag London Limited 2011

Authors and Affiliations

  1. 1.Dept. Computer ScienceLuther CollegeDecorahUSA

Personalised recommendations