peterbrittain / asciimatics

A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
Apache License 2.0
3.62k stars 237 forks source link

Layout column widths #323

Closed Davidy22 closed 3 years ago

Davidy22 commented 3 years ago

Is your feature request related to a problem? Please describe. I want to define different widths for different columns. Right now I can't find anything that seems to indicate I can do anything other than evenly wide columns. I could do weird workarounds, but I'd rather just define some % widths.

Describe the solution you'd like Some % width definitions, I could see fixed width columns being useful too and a combination of the two would be nice as well.

Describe alternatives you've considered I could just use it like it is now, but some of my columns have information that really wants more space than the neighbouring columns.

peterbrittain commented 3 years ago

I think you want the columns parameter when constructing your Layout. See https://asciimatics.readthedocs.io/en/stable/asciimatics.widgets.html#asciimatics.widgets.layout.Layout

Davidy22 commented 3 years ago

Oh word, for some reason I thought that parameter was height because downscaling numbers made weird things happen on rendered output. Well, I'll open tickets when the render weirdness happens again and close this.