Dear Monks,

I need advise from a Tk user on what would be the easiest way to display two colums of data. The first one contains pre-defined data (like labels) and the other contains data from a file-- the pre-defined text describes the data from the file. There are 5 different "labels" per item. Each item needs to be able to be selected (maybe with a checkbutton). Since there might be lots of data, there is need for at least the vertical scrollbar.

I have tried with Scrolled ('Text'). The display of the labels, the checkboxes and the info from the file works fine, but I have no control over the size of the widget and the scrollbars don't work.

I have tried with an array of listboxes (two --one for the pre-defined text and one for the data from the file). This lets me control the size of the widget and the scrollbar works, but I have not figured out how to process my data and have it display in one listbox while the pre-defined text appears in the other listbox.

Any idea of what kind of widget I need?

Thank you in advance for your time,

Claire


In reply to array of listboxes with vertical scrollbar capable of displaying different data by Real Perl

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.