Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

demos::widget_lib::trace2(3)				       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 Tk804.028 2007-05-05 demos::widget_lib::trace2(3)

Check Out this Related Man Page

demos::widget_lib::slide(3)				       perl/Tk Documentation				       demos::widget_lib::slide(3)

NAME
Tk::SlideSwitch - a 2 position horizontal or vertical switch. SYNOPSIS
use Tk::SlideSwitch; my $sl = $frame1->SlideSwitch( -bg => 'gray', -orient => 'horizontal', -command => [$self => 'on'], -llabel => [-text => 'OFF', -foreground => 'blue'], -rlabel => [-text => 'ON', -foreground => 'blue'], -troughcolor => 'tan', )->pack(qw/-side left -expand 1/); DESCRIPTION
Tk::SlideSwitch is a Frame based composite mega-widget featuring a binary Scale widget surrounded by two Label widgets. The Scale's value can be either 0 or 1. The Labels are positioned to the left and right of the Scale if its orientation is horizontal, else on the top and bottom of the Scale. OPTIONS
In addition to all Scale options, the following option/value pairs are also supported: -llabel A reference to an array of left (or top) Label configuration options. -rlabel A reference to an array of right (or bottom) Label configuration options. METHODS
There are no special methods. ADVERTISED WIDGETS
Component subwidgets can be accessed via the Subwidget method. This mega widget has no advertised subwidgets. EXAMPLE
See Synopsis. BUGS
This widget uses only the pack geometry manager. AUTHOR
sol0@Lehigh.EDU Copyright (C) 2002 - 2003, 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
SlideSwitch, Scale Tk804.03 2014-06-10 demos::widget_lib::slide(3)
Man Page

7 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

Hashmap

hi friends, problem statement is Program to insert elements into a hashmap(say A). create new hashmap (say B). Copy the contents of A to B, Clear the contents of hashmap A. then print the contents of hashMap B. please help me to do this Thanksn advance... (1 Reply)
Discussion started by: shilpaamu
1 Replies

3. 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

4. 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

5. 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

6. 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

7. UNIX for Dummies Questions & Answers

Storing file contents to a variable

(12 Replies)
Discussion started by: am24
12 Replies