Revision 89efe927
b/image_creator/output/dialog.py | ||
---|---|---|
131 | 131 |
self.msg += "%s%s" % (msg, nl) |
132 | 132 |
# If output is long, only output the last lines that fit in the box |
133 | 133 |
lines = self.msg.splitlines() |
134 |
h = self.height |
|
134 |
# The height of the active region is 2 lines shorter that the height of |
|
135 |
# the dialog |
|
136 |
h = self.height - 2 |
|
135 | 137 |
display = self.msg if len(lines) <= h else "\n".join(lines[-h:]) |
136 | 138 |
self.d.infobox(display, title=self.title, height=self.height, |
137 | 139 |
width=self.width) |
Also available in: Unified diff