Home > Archive > PerlTk > March 2005 > REPOST Tk::MatchEntry bindings with Tk804.027
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
REPOST Tk::MatchEntry bindings with Tk804.027
|
|
| nicolas // 2005-03-14, 8:57 am |
| Hello,
I am sorry to repost. If my question is not understandable or stupid, please tell me so.
This small code works well with Tk800:
The MatchEntry automatically pops up and when I press up/down keys,
I can move through the listbox.
With the latest version of Tk, those bindings do not work, and pressing those keys simply deletes the entry text.
Clicking with "<1>" in the list makes it vanish and nothing else. I do not know what to do.
Is it worth I redefine bindings for the class or is there another solution?
The exemple given by the maintainer in the pod suffers the same...
I thought my installation was broken, but it does the same on two machines and nothing changes after reinstall.
******
use strict;
use Tk;
my $mw = MainWindow->new();
my $choices = [
"Jean de Lardier",
"Jean, archiprestre",
"Jean",
"Arnoul",
];
my $ba = $mw->MatchEntry(-choices => $choices)->pack;
$ba->focus;
MainLoop();
*******
Thank you in advance
--
nicolas //
| |
| Wolfgang Hommel 2005-03-14, 8:57 pm |
| Hello,
> I am sorry to repost. If my question is not understandable or stupid, please tell me so.
I had sent you an update for the module by mail... maybe check your spam
folder? :-)
The fixed version which works with recent Perl/Tk will also be available
from CPAN soon.
Regards,
Wolfgang
| |
| nicolas // 2005-03-15, 8:57 am |
| Le Mon, 14 Mar 2005 22:13:11 +0100
Wolfgang Hommel <wolf@code-wizards.com> a =E9crit:
> I had sent you an update for the module by mail... maybe check your spam=
=20
> folder? :-)
There it is! Thanks!
--=20
nicolas //
|
|
|
|
|