I'm one of those types that like to get one thing working well and under my control, and use that come what may. That said, I decided a long time ago, that the Canvas (and Tk::Zinc) widgets, will do anything you want, and can be made to look as nice as the effort you are willing to put into it. Just look at the Tk::Zinc demo. Now that the Goo::Canvas is coming along nicely( for Gtk2), I will probably concentrate on that.
If you try, you will find that emulating the regular widgets in Tk on a Canvas, is not that difficult. You get far more control over all the bindings (which is a real hassle on some of the regular widgets, where button 1 presses are predefined), and you can make nice shapes and graphics for buttons and labels. The biggest problem you need to deal with is the size and spacing of text. I found an easy workaround by taking the bbox of a capital W, and use that as the default spacing for the font used. Using that, you can make side-by-side lists, and do easy drag-and-drop. Additionally, the canvas is very good at memory management on it's items......and this avoids many memory gain problems encountered in standard widgets, when you do alot of changes.
Anyways..... if I want something to look good, I will go with one of the various canvases, not that Tkx isn't good, but I would rather be good at the canvas( where I'm in full control), than half-ass good at Tkx (where I'm dependent on some other programmers and have less control).
Oh yeah, the canvas's already do tiling of backgrounds. :-)
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.