demos::widget_lib::trace2(3)
okay bestie, welcome to demos::widget_lib::trace2(3) from the perl/Tk Documentation β this one is all about a Text widget with a traced-variable situation, and it's lowkey iconic π
β¨ NAME β¨
Tk::TraceText β Text contents defined by a traced variable. π¦
π SYNOPSIS π
$tt = $parent->TraceText(-option => value, ... );
π DESCRIPTION π
So you create a brand-new TraceText widget, and it's derived from the standard Text widget. Because it inherits all the base options and methods, it behaves just like a Text widget β no cap. π
On top of that, 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. It just does the standard Text widget method thing, periodt. π«Ά
πΈ ADVERTISED SUBWIDGETS πΈ
None. No subwidgets were advertised, bestie β not a single one. π
β 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 β¨
Version Tk804.036, dated 2025-07-31, and this iconic little page is demos::widget_lib::trace2(3) β bye bestie, go trace that text ππ
π¦ where this page comes from
- alpine 3.23: perl-tk-doc 804.036-r8 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- alpine 3.24: perl-tk-doc 804.036-r8 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms