in reply to How do you make Tk look good?
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. :-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How do you make Tk look good?
by Anonymous Monk on Jul 16, 2008 at 14:37 UTC | |
by zentara (Cardinal) on Jul 16, 2008 at 14:45 UTC | |
Re^2: How do you make Tk look good?
by cmv (Chaplain) on Jul 17, 2008 at 21:09 UTC | |
by zentara (Cardinal) on Jul 18, 2008 at 11:44 UTC |