Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tk::demos::widget_lib::trace2(3pm) [debian man page]

demos::widget_lib::trace2(3pm)				       perl/Tk Documentation				    demos::widget_lib::trace2(3pm)

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 Tk804.03 2010-05-29 demos::widget_lib::trace2(3pm)

Check Out this Related Man Page

WIDGET(1)						       perl/Tk Documentation							 WIDGET(1)

NAME
widget - Demonstration of Perl/Tk widgets SYNOPSYS
widget [ directory ] DESCRIPTION
This script demonstrates the various widgets provided by Tk, along with many of the features of the Tk toolkit. This file only contains code to generate the main window for the application, which invokes individual demonstrations. The code for the actual demonstrations is contained in separate ".pl" files in the "widget_lib" directory, which are autoloaded by this script as needed. widget looks in the directory specified on the command line to load user contributed demonstrations. If no directory name is specified when widget is invoked and the environment variable WIDTRIB is defined then demonstrations are loaded from the WIDTRIB directory. If WIDTRIB is undefined then widget defaults to the released user contributed directory, "widtrib". History # # Stephen O. Lidie, LUCC, 96/03/11. lusol@Lehigh.EDU # Stephen O. Lidie, LUCC, 97/01/01. lusol@Lehigh.EDU # Stephen O. Lidie, LUCC, 97/02/11. lusol@Lehigh.EDU # Stephen O. Lidie, LUCC, 97/06/07. lusol@Lehigh.EDU # Update for Tk402.00x. Total revamp: WidgetDemo, Scrolled, released # composites, -menuitems, qw//, etcetera. Perl 5.004 required. # Stephen O. Lidie, LUCC, 98/03/10. lusol@Lehigh.EDU # Update for Tk8. # Stephen O. Lidie, LUCC, 98/06/26. Stephen.O.Lidie@Lehigh.EDU # Add Common Dialogs for Tk800.007. # Stephen.O.Lidie@Lehigh.EDU, 1999/11/29, Lehigh University. # Demo some "dash patch" changes. # Stephen.O.Lidie@Lehigh.EDU, 2000/01/11, Lehigh University. # Update menubar to Tk 8, fix color palette Menubutton demo. # Stephen.O.Lidie@Lehigh.EDU, 2000/07/06, Lehigh University. # Remove inswt() from widget and styles.pl to show the proper Perl/Tk # idiom for inserting Text tags. Various and sundry cleanups. # sol0@lehigh.edu, 2003/07/29, Lehigh University Computing Center. # Update for Tk 8.4.4. AUTHOR
Steve Lidie <sol0@Lehigh.EDU> Tk804.028 2010-07-05 WIDGET(1)
Man Page

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

few TCL question

Hello I am a TCL beginer, so please answer accordingly here are my question: 1. variable scope I built a text widget and gave it a textvariable: cmd_entry, I I sent it to a procedure where I declare it as “global cmd_entry” and give it a value The problem is that in the main program... (0 Replies)
Discussion started by: orid
0 Replies

2. UNIX for Dummies Questions & Answers

Text file to a variable

I have a variable which is not being populated with the contents of a text file, and I'm wondering if anyone happens to know how to do this for a sh type script? #!/bin/sh set alertperson = cat /export/home/bdodym/alert.person if then cat /export/home/bdodym/callout6.msg |... (6 Replies)
Discussion started by: tjhorwood
6 Replies

3. Shell Programming and Scripting

Numbering a Text File

Running into a little problem with blank lines. My file is of this format: To number each line of the file i would use: n=1 echo "$FILE" | while read line do echo "$n) $line" n=`expr $n + 1` But really, i dont want to number the blank lines. What i've tried is to use sed... (13 Replies)
Discussion started by: omgsomuchppl
13 Replies

4. Shell Programming and Scripting

Perl variable type assessment

Hello experts, How we can find out,that what is type of a scalar variable? i.e a scalar var contain a number or a string. Thanks in advance. (8 Replies)
Discussion started by: Zaxon
8 Replies

5. UNIX for Beginners Questions & Answers

Storing file contents to a variable

Hi All, I was trying a shell script. I was unable to store file contents to a variable in the script. I have tried the below but unable to do it. Input = `cat /path/op.diary` Input = $(<op.diary) I am using ksh shell. I want to store the 'op.diary' file contents to the variable 'Input'... (12 Replies)
Discussion started by: am24
12 Replies

6. UNIX for Dummies Questions & Answers

Storing file contents to a variable

(12 Replies)
Discussion started by: am24
12 Replies