If you are inserting something programmatically, then why not check it
before you insert :)
Anyways, it doesn't do that for me? Run this script and tell me what it
does..
##
use Tk;
use Tk::LEntry;
use strict;
my $max=10;
my $status="HELLO";
my $mw=new MainWindow;
my $e=$m
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Dunnigan,Jack [Edm]
>
>
> >-Original Message-
> >From: Adam Frielink [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, January 07, 2002 12:16 PM
>
> >Thanks Jack. I guess I wasn't specific enough
>-Original Message-
>From: Adam Frielink [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 07, 2002 12:16 PM
>Thanks Jack. I guess I wasn't specific enough in my original post to say
>that I cannot allow an entry of more than 75 characters and not an entry
box
>of 75 character width. If
m: Dunnigan,Jack [Edm] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 07, 2002 2:08 PM
> To: 'Adam Frielink'; [EMAIL PROTECTED]
> Subject: RE: Perl/Tk Entry widget questions
>
>
> You will need to use -validatecommand -- or --
>
> Nick Ing-Simmons wrote a small pac
---
From: Swartwood, Larry H
Sent: Monday, January 07, 2002 12:05 PM
To: 'Adam Frielink'; '[EMAIL PROTECTED]'
Subject: RE: Perl/Tk Entry widget questions
Oops. Forgot the all important pack(). Should be:
$entry->Entry( -textvariable => \$my_var, -width => 75)->p
m Frielink [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: Perl/Tk Entry widget questions
Greetings,
Here is a simple one, does anyone know how to limit the length of a Entry
widget in Tk to be no more than 75 characters?
Will this require a Validat
> $entry->Entry( -textvariable => \$my_var, -width => 75);
>
> http://w4.lns.cornell.edu/~pvhp/ptk/doc/
...where the documentation states:
Name: width
Class: Width
Configure Option: -width
Specifies an integer value indicating the desired width of the entry window,
in average-size character
ect: RE: Perl/Tk Entry widget questions
$entry->Entry( -textvariable => \$my_var, -width => 75);
http://w4.lns.cornell.edu/~pvhp/ptk/doc/
Larry S.
-Original Message-
From: Adam Frielink [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 12:00 PM
To: [EMAIL PROTECTED
$entry->Entry( -textvariable => \$my_var, -width => 75);
http://w4.lns.cornell.edu/~pvhp/ptk/doc/
Larry S.
-Original Message-
From: Adam Frielink [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: Perl/Tk Entry widget questions
Greetings,
Here is a simple one, does anyone know how to limit the length of a Entry
widget in Tk to be no more than 75 characters?
Will this require a Validate callback, or is there an option that can be
setup when I create the Entry widget?
Thanks,
Adam Frielink
Tyco Plastics
_
10 matches
Mail list logo