O'Reilly logo

Mastering Perl/Tk by Nancy Walsh, Stephen Lidie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Text Widget Options

Options used with the Text method change the way the text is displayed within the Text widget. The following options are standard for all the widgets (see Chapter 4, where the options were first covered, for further information):

-background => color

Changes the color of the screen displayed behind the text.

-borderwidth => amount

Sets the width of the edges of the widget.

-cursor => cursorname

Sets the cursor displayed when the mouse cursor is in front of the Text widget.

1

Determines if the text selected within the widget can also be used by the windowing system (such as X windows).

-font => fontname

Sets the font in which the text is displayed.

-foreground => color

Sets the color of the text.

-height => amount

Sets the height of the widget. Default is 24.

-highlightbackground => color

Sets the color the highlight rectangle around the widget should be when it does not have the keyboard focus.

-highlightcolor => color

Sets the color the highlight rectangle around the widget should be when it has the keyboard focus.

-highlightthickness => amount

Sets the thickness of the highlight rectangle around the widget. Default is 2.

-insertbackground => color

Changes the color of the insert cursor.

-insertborderwidth => amount

Changes the width of the insert cursor.

-insertofftime => time

Sets the time the insert cursor blinks in the off position. Default is 300.

-insertontime => time

Sets the time the insert cursor blinks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required