My fellow monks,
I've been working for the past week and a half to learn
Tk. As I've mentioned in
Other Nodes, I come from a
Win32::GUI background, so I'm used to working with and around it's limitations. Well, I've come to the point where I want to do something I know Win32::GUI can do, but I don't know if Tk can do, can anyone tell me how?
Basically, this is what I want: A listbox (complete with scrollbars etc...) containing nothing all that complex, just a checkbox on the left, and some text to the right.
Looking something like this:
| ------------------- |
| [ | X | ] | Top | | | /\ | | |
| [ | X | ] | More | | | [] | | |
| [ | X | ] | More | | | [] | | |
| [ | X | ] | More | | | [] | | |
| [ | X | ] | More | | | [] | | |
| [ | | ] | More | | | [] | | |
| [ | X | ] | More | | | | | |
| [ | X | ] | More | | | | | |
| [ | | ] | More | | | | | |
| [ | X | ] | More | | | | | |
| [ | X | ] | More | | | | | |
| [ | | ] | More | | | | | |
| [ | | ] | More | | | | | |
| [ | | ] | More | | | | | |
| [ | X | ] | More | | | \/ | | |
| ------------------- |
Thats the best I can come up with in HTML :) Sue me :)
Anyway, is it possible in Tk? And how would I do it? Thanks!
"Weird things happen, get used to it."
Flame ~ Lead Programmer:
GMS
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.