I give up. 2 days of solid research and i can't find a single example of how to get this to work
use Tk; use Tk::MatchEntry; @dataa = [ qw/Abberley Abberton Abbotsley Accrington/]; @datab = [ qw/Babraham Bacton Bexhill Bradfield/]; 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 = $mw->MatchEntry( -variable => \$place, -choices => @dataa, -autosort => 0, -fixedwidth => 0, -ignorecase => 1, -maxheight => 10, -listwidth => 240, -entercmd => sub {#do some stuff }, -onecmd => sub {#do some stuff then $me->configure('choices' => @datab); }, )->pack(-side => 'left'); Tk::MainLoop();
what i hoped would happen is that the choices in array @dataa would be used to fill the listbox contents and once the first caharcter was entered the contents would be altered to array @datab but i just get error "XS_Tk__Callback_Call error:Can't call method "configure" on an undefined value at line 22". any help will go along way to restoring my sanity Thank you for your time in reading this far -Daniel

In reply to tk::matchentry changing the displayed choices by gkx947n

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.