in reply to tk::matchentry changing the displayed choices
The following (slightly pared down) code does the trick:
use strict; use warnings; use Tk; use Tk::MatchEntry; my @dataa = qw/Abberley Abberton Abbotsley Accrington/; my $place; my $mw = MainWindow->new (-title => "i wish this would work",); $mw->geometry ("200x70+0+0"); my $label = $mw->label ("type somthing in the box"); my $me; $me = $mw->MatchEntry ( -textvariable => \$place, -choices => \@dataa, -autosort => 0, -fixedwidth => 0, -ignorecase => 1, -maxheight => 10, -listwidth => 240, )->pack (-side => 'left'); Tk::MainLoop ();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: tk::matchentry changing the displayed choices
by gkx947n (Novice) on Jan 21, 2008 at 22:53 UTC | |
by GrandFather (Saint) on Jan 21, 2008 at 23:01 UTC | |
by gkx947n (Novice) on Jan 21, 2008 at 23:10 UTC | |
by GrandFather (Saint) on Jan 21, 2008 at 23:20 UTC | |
by gkx947n (Novice) on Jan 21, 2008 at 23:33 UTC | |
|