Hi,
I'm trying to puzzle out how to configure values in a Tkx combobox. (I am also trying to learn Tkx by programming by example.) I can make pretty comboboxes in a frame and grid them and populate them with ranges of values:
my @days = (1 .. 31); Tkx::ttk__combobox(".app.date.day", -values => \@days, -textvariable => \$d,); Tkx::grid(".app.date.day", -column => 0, -row => 2, -columnspan => 1, -rowspan => 1, -sticky => "nsew");

but when I try to change the values
@days = qw(1 .. 28); Tkx::ttk__configure(".app.date.day", -values => \@days,);

I get the error message:
invalid command name "ttk::configure"

Doesn't work for Tkx::configure either. The Tk docs indicate that configure is the correct way to change -values, but I'm darned if I can make it work.

I'm running ActiveState Perl 5.10 on WinXP with the Tkx 1.05 module.

I'm losing my mind trying to interpret the doc on www.tcl.tk so if anyone wiser than I has an idea which direction to bang my head, I'd appreciate it.

In reply to Tkx - configure ttk::combobox by ussuriysk

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.