perl-Tk-FmtEntry-0.1-alt1.x86_64.rpm


Advertisement

Description

perl-Tk-FmtEntry - Formatted Entry widget

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports x86_64
Package filename perl-Tk-FmtEntry-0.1-alt1.x86_64.rpm
Package name perl-Tk-FmtEntry
Package version 0.1
Package release alt1
Package architecture x86_64
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...

Alternatives

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

Requires

Name Value
/usr/lib64/perl5 -
perl(Tk.pm) -
perl(Tk/Derived.pm) -
perl(Tk/Entry.pm) -
perl(Tk/widgets.pm) -
perl(base.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Tk/FmtEntry.pm) = 0.100
perl(Tk/demos/widtrib/fmtentrytest.pl) -
perl-Tk-FmtEntry = 0.1-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-Tk-FmtEntry-0.1-alt1.x86_64.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] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus x86_64 autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/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

Files

Path
/usr/lib64/perl5/Tk/FmtEntry.pm
/usr/lib64/perl5/Tk/demos/
/usr/lib64/perl5/Tk/demos/widtrib/fmtentrytest.pl

See Also

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