Thanks for the replies. This simple approach would not work for the widget in question. You'd need to access something like "disabledbackground" or similar, but the widget doesn't expose this.

I had considered using the combo box out of BWidgets as that seems a lot more flexible, and doesn't sacrifice functionality for fitting in with themes. However on reflection I did not like the drop down list style at all, so in the end I've ditched the requirement for combo boxes in this context to be instantiated as read only, and have kept only two states: normal and disabled. This works for me right now as it doesn't matter too much that the user can edit the selected value and potentially make it invalid.


In reply to Re^2: Setting disabled background on Tkx combobox widget by v4169sgr
in thread Setting disabled background on Tkx combobox widget by v4169sgr

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.