10.6. Adding a Label

You can add a label to your scale by using the -label option. The label is placed in a different location depending on the value associated with -orient (see Figure 10.2).

Figure 10.2. Two scales with labels

Get Learning Perl/Tk 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.