I want to create an array of widgets that behaves like a table - exactly what GridSpec does. However, I want the rows & columns to be different fixed widths, and I’m not sure how to do this.
I’ve tried playing with a bunch of different sizing options on the GridSpec and the child widgets. However, it seems that GridSpec overrides all of the children’s sizing options on load. If I set an entire column of children to a fixed width after loading, the GridSpec column will resize to respect that. But if I try to do that while composing the panel, before the GridSpec loads, it seemingly has no effect.
I know that I can have one widget simply take multiple rows/columns, but this feels awkward/kludgy and I’m stuck with rational ratios which isn’t great when I just want relatively minor adjustments.
I’m wondering if I should create, say, a Column of Rows and enforce the “table” alignment via the widths of the widgets or Spacers in each Row. However, this feels like it would be pretty fragile.
Can anyone tell me what the best way or the canon way to achieve something like this would be? Has anyone else had such a use case? Thanks in advance!