10.3. 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.1 shows both a horizontal scale and a vertical scale.

Figure 10.1. Vertical scale (the default orientation) and horizontal scale

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.