Tk::demos::widget_lib::trace2 - Text contents defined by a traced variable.
$tt = $parent->TraceText(-option => value, ... );
perl/Tk Documentation demos::widget_lib::trace2(3)
NAME
Tk::TraceText - Text contents defined by a traced variable.
SYNOPSIS
$tt = $parent->TraceText(-option => value, ... );
DESCRIPTION
Create a new TraceText widget that is derived from the standard Text
widget. Because it inherits all the base options and methods it behaves
just like a Text widget. Additionally, TraceText adds a -textvariable
option, which is a reference to a Perl scalar that defines the contents
of the widget.
Based on the Tcl/Tk TracedText "overridden widget" by Kevin Kenny.
-textvariable
A scalar reference. The value of the variable defines the contents
of the TraceText widget. Using the keyboard to insert or delete
text changes the value of the variable, and changing the variable
alters the contents of the TraceText widget.
METHODS
Standard Text widget methods.
ADVERTISED SUBWIDGETS
None.
EXAMPLE
my $tt = $mw->TraceText( -textvariable => \$scalar );
AUTHOR
Stephen.O.Lidie@Lehigh.EDU
Copyright (C) 2003 - 2004, Steve Lidie. All rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
KEYWORDS
text, trace
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+----------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+----------------------------+
|Availability | library/perl-5/perl-tk-532 |
+---------------+----------------------------+
|Stability | Volatile |
+---------------+----------------------------+
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.036.tar.gz.
Further information about this software can be found on the open source
community website at http://search.cpan.org/~srezic/Tk.
Tk804.036 2013-11-15
demos::widget_lib::trace2(3)