CHAPTER 10

Basic GUI Programming Using Tkinter

 

Objectives

  • To create a simple graphical user interface (GUI) application with Tkinter (§10.2).
  • To process events by using callback functions that are bound to a widget’s command option (§10.3).
  • To use labels, entries, buttons, check buttons, radio buttons, messages, and text to create graphical user interfaces (§10.4).
  • To draw lines, rectangles, ovals, polygons, and arcs and display text strings in a canvas (§10.5).
  • To use geometry managers to lay out widgets in a container (§10.6).
  • To lay out widgets in a grid by using the grid manager (§10.6.1).
  • To pack widgets side by side or on top of each other by using the pack manager (§10.6.2).
  • To place widgets in absolute locations by using the place ...

Get Introduction to Python Programming and Data Structures, 3rd Edition by Pearson now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.