Rev 3804 | Rev 3843 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3804 | Rev 3805 | ||
---|---|---|---|
Line 139... | Line 139... | ||
139 | 139 | ||
140 | if (newt): |
140 | if (newt): |
141 | width = width_fix(screen, width + width_extra) |
141 | width = width_fix(screen, width + width_extra) |
142 | height = height_fix(screen, height) |
142 | height = height_fix(screen, height) |
143 | 143 | ||
- | 144 | if (height > 3): |
|
- | 145 | large = True |
|
- | 146 | else: |
|
- | 147 | large = False |
|
- | 148 | ||
144 | buttonbar = snack.ButtonBar(screen, ('Done', 'Cancel')) |
149 | buttonbar = snack.ButtonBar(screen, ('Done', 'Cancel')) |
145 | textbox = snack.TextboxReflowed(width, text) |
150 | textbox = snack.TextboxReflowed(width, text) |
146 | listbox = snack.Listbox(height, scroll = True, returnExit = 1) |
151 | listbox = snack.Listbox(height, scroll = large, returnExit = 1) |
147 | 152 | ||
148 | cnt = 0 |
153 | cnt = 0 |
149 | for option in options: |
154 | for option in options: |
150 | listbox.append(option, cnt) |
155 | listbox.append(option, cnt) |
151 | cnt += 1 |
156 | cnt += 1 |