in reply to Re^3: Prima: How to get a "table" layout?
in thread Prima: How to get a "table" layout?

I am aware that it might work somewhere. I wrote:

I would also prefer not to count pixels for the line height, which might differ for different platforms (or fonts).

Here's how it looks with ~20 lines on my Ubuntu 24.01 LTS: https://haraldjoerg.github.io/i/tk_table.png

  • Comment on Re^4: Prima: How to get a "table" layout?

Replies are listed 'Best First'.
Re^5: Prima: How to get a "table" layout?
by Marshall (Canon) on Jan 22, 2025 at 04:59 UTC
    WOW! That is indeed ugly! On Windows, the same thing looks great.

    One thought, is that TCL has a LabelEntry widget, more flexible than Tk's LabEntry. I was thinking that using a widget that combines the Label and the Entry might solve the alignment problem? I couldn't get the Tk LabEntry to do exactly what I wanted, but this can take experimentation.

    The TableMatrix I think would solve the issue and be multi-platform, but it would require a bit more work although, I think you can put an entry widget inside of one of the Matrix boxes.

    Overall, a nasty problem because Label: Entry would be a normal way one would want to use these widgets.