perl-Tk-FmtEntry - Formatted Entry widget

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports i586
Package filename perl-Tk-FmtEntry-0.1-alt1.i586.rpm
Package name perl-Tk-FmtEntry
Package version 0.1
Package release alt1
Package architecture i586
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 14.05 KB
Installed size 14.05 KB
A normal Entry widget, but it may enforce some format upon the entered value.
For example, telephone number, credit-card, or currency (money) formats.
The programmer must supply the formatting function.
See below for examples.
Otherwise, this acts a like a normal Entry widget, except for some restrictions
on the use of -validate.
The following additional options/value pairs are supported:
=over 4
=item -delay
Normally, the formatting function is called as soon as possible after any edit
to the contents of the FmtEntry field.  However, you may want to delay the
formatting a bit, so multiple edits to the field can be "batched" and handled
at once.  This may also be useful when swipe-card reads are to be extracted
from a field that's also a user-entry (type-in) field.
Use the -delay option to specify the number of milliseconds to wait
before the formatting fuction is invoked.   Edits to the field must be idle
for this amount of time before the format function is called: if you set an
80ms delay, for example, and the edits come in with 65ms, 79ms, 55ms, then 81ms
pauses, the call will occur after the last pause (not after each).
Note that users typically percieve delays of more than 80ms.
=item -formatcommand
Alias: -fcmd
The formatting function.  This function is called to cleanup,
correct, and/or [re]format the value contained in the entry.
It is called with three arguments: the (possibly) unformatted string
in the entry field, and the current insertion cursor index, and a reference
to the FmtEntry widget.
The function should return two values: the cleaned-up string,
and the revised insertion cursor point.  If the revised insertion point is
not returned (undef), then a simplistic correlation algorithm will
be used to guess the new insertion cursor point.  It's not a very
good guess, so the cursor may not be where you expect it.  Thus, your
formatting function should calculate and return the revised position.
An example may help.  Suppose we want to enforce all entries to be
lowercase.  In t...


Package Version Architecture Repository
perl-Tk-FmtEntry-0.1-alt1.x86_64.rpm 0.1 x86_64 Autoimports
perl-Tk-FmtEntry - - -


Name Value
/usr/lib/perl5 -
perl( -
perl(Tk/ -
perl(Tk/ -
perl(Tk/ -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Tk/ = 0.100
perl(Tk/demos/widtrib/ -
perl-Tk-FmtEntry = 0.1-alt1


Type URL
Binary Package perl-Tk-FmtEntry-0.1-alt1.i586.rpm
Source Package perl-Tk-FmtEntry-0.1-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] i586 autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Tk-FmtEntry rpm package:
    # sudo apt-get install perl-Tk-FmtEntry



See Also

Package Description
perl-Tk-FullKeypad-1.0-alt1.i586.rpm Full Keypad widget
perl-Tk-IDElayout-0.34-alt1.1.i586.rpm perl module Tk-IDElayout
perl-Tk-JPEG-Lite-2.015-alt5.1.i586.rpm lite JPEG loader for Tk::Photo
perl-Tk-JPEG-Lite-scripts-2.015-alt5.1.i586.rpm perl-Tk-JPEG-Lite scripts
perl-Tk-NumKeypad-1.4-alt1.i586.rpm Numeric Keypad widget
perl-Tk-TIFF-0.11-alt4.1.i586.rpm Tk::Photo loader for TIFF files
perl-Tk-TreeGraph-1.030-alt4.1.i586.rpm Tk widget to draw a tree in a Canvas
perl-Tree-Fat-1.111-alt4.1.i586.rpm Perl Extension to Implement Fat-Node Trees
perl-Tree-Fat-scripts-1.111-alt4.1.i586.rpm Tree-Fat scripts
perl-Tree-Interval-Fast-0.0.1-alt1.1.i586.rpm Perl extension for efficient creation and manipulation of interval trees
perl-Tree-Node-0.08-alt4.1.i586.rpm Memory-efficient tree nodes in Perl
perl-Tree-SizeBalanced-2.006002-alt1.1.i586.rpm Size balanced binary search tree (XS implementation)
perl-Tree-Ternary_XS-0.04-alt4.1.i586.rpm perl module Tree-Ternary_XS
perl-Try-0.03-alt4.1.i586.rpm nicer exception handling syntax
perl-TryCatch-1.003002-alt8_21.i586.rpm First class try catch semantics for Perl, without source filters