Orientation

To change the orientation of the Scale, use the -orient option. It takes a string value that should contain either "horizontal" or "vertical". The default for this option is "vertical". Figure 10-2 shows both a horizontal Scale and a vertical Scale.

Vertical Scale (the default orientation) and horizontal Scale

Figure 10-2. Vertical Scale (the default orientation) and horizontal Scale

Get Mastering 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.