Discussion:
[Urwid] How to push a widget to the bottom?
Lukasz Grabowski
2015-03-01 15:07:00 UTC
Permalink
Hi,
I'd like to use Filler (or something else) to "push a widget to the bottom".

I have a pile of [something, something, Columns] and in the Columns I
have [GridFlow, GridFlow, Text]. The problem is that the first
GridFlow takes always exactly one line and the second GridFlow takes
anything between 1-4 lines so I'd like to have the first GridFlow
pushed to the bottom

I tried exchanging the first GridFlow with Filler(GridFlow) but uriwd
keeps complaining.

Here's a screenshot: Loading Image... I'd
like to push "j a c s" in the bottom left corner completely to the
bottom

Best, Lukasz
Lukasz Grabowski
2015-03-01 15:46:56 UTC
Permalink
Post by Lukasz Grabowski
I'd like to use Filler (or something else) to "push a widget to the bottom".
As explained to me by wardi on IRC, adding the option box_columns =[0]
to the Columns constructor solves the problem, i.e. it is possible to
use e.g. Filler(GridFlow, valign='bottom', bottom=1) to have exactly 1
row between the bottom and the gridflow.

L
Post by Lukasz Grabowski
I have a pile of [something, something, Columns] and in the Columns I
have [GridFlow, GridFlow, Text]. The problem is that the first
GridFlow takes always exactly one line and the second GridFlow takes
anything between 1-4 lines so I'd like to have the first GridFlow
pushed to the bottom
I tried exchanging the first GridFlow with Filler(GridFlow) but uriwd
keeps complaining.
Here's a screenshot: http://homepages.warwick.ac.uk/~masmbh/s.png I'd
like to push "j a c s" in the bottom left corner completely to the
bottom
Best, Lukasz
Loading...