Changes between Version 1 and Version 2 of WidgetLayout
- Timestamp:
- 01/24/10 11:29:17 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WidgetLayout
v1 v2 1 = Urwid Widget Layout = 1 UrwidManual 2 2 3 [[ManualToc]] 4 5 == On-Screen Layout == 3 = Widget Layout = 6 4 7 5 Urwid uses widgets to divide up the available screen space. … … 71 69 It is an Urwid convention to 72 70 use the variables `maxcol` and `maxrow` to store a widget's 73 size. Box widgets use the tuple `(maxcol, maxrow)` in74 the signature of functions that are passed a size. 75 Flow widgets use thesingle-element tuple `(maxcol,)` instead71 size. Box widgets require both of `(maxcol, maxrow)` to be specified. 72 73 Flow widgets expect a single-element tuple `(maxcol,)` instead 76 74 because they calculate their `maxrow` based on the `maxcol` 77 value. Fixed widgets expect the value `None` to be passed in 75 value. 76 77 Fixed widgets expect the value `None` to be passed in 78 78 to functions that take a size because they know their `maxcol` 79 79 and `maxrow` values.
