[ Team LiB ] Previous Section Next Section

Chapter 32. Simple Tk Widgets

This chapter describes several simple Tk widgets: the frame, label, labelframe, message, scale, and toplevel. In general, these widgets require minimal setup to be useful in your application. The bell command rings the terminal bell.

This chapter describes six simple widgets and the bell command.

  • The frame is a building block for widget layout.

  • A labelframe is an enhanced frame that also supports the display of a label along its border.

  • A toplevel is a frame that is detached from the main window.

  • The label displays read-only text or an image.

  • The message provides a read-only block of text that gets formatted onto several lines.

  • The scale is a slider-like widget used to set a numeric value.

  • The bell command rings the terminal bell.

Chapters 40, 41, and 42 go into more detail about some of the generic widget attributes shared by the widgets presented in this chapter. The examples in this chapter use the default widget attributes in most cases.

    [ Team LiB ] Previous Section Next Section