Chapter 29. Simple Tk Widgets

   

Practical Programming in Tcl & Tk, Third Edition
By Brent B. Welch

Table of Contents
Part IV.  Tk Widgets


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

This chapter describes four simple widgets and the bell command.

  • The frame is a building block for widget layout. A toplevel is a frame that is detached from the main window.

  • The label provides a line of read-only text.

  • 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 37, 38, and 39 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.


       
    Top
     



    Practical Programming in Tcl and Tk
    Practical Programming in Tcl and Tk (4th Edition)
    ISBN: 0130385603
    EAN: 2147483647
    Year: 1999
    Pages: 478

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net