summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunai <andunai@gmail.com>2018-01-04 13:59:50 +0200
committerGitHub <noreply@github.com>2018-01-04 13:59:50 +0200
commit1495adb2b666d2e0a6d1b3ed543dd6aefc449833 (patch)
treea16755c797e44a411595826baf3b3af3a25d5a00
parentcf0307c500e1d575fec5fc5a37e4ff4e69972b92 (diff)
parent8bb2e7f058579366781cd5664de5f8949e14b5c4 (diff)
downloadurwid-1495adb2b666d2e0a6d1b3ed543dd6aefc449833.tar.gz
Merge pull request #175 from rr-/patch-1
Correct error messages in Filler
-rwxr-xr-xurwid/decoration.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/urwid/decoration.py b/urwid/decoration.py
index 978722f..9c18028 100755
--- a/urwid/decoration.py
+++ b/urwid/decoration.py
@@ -732,14 +732,14 @@ class Filler(WidgetDecoration):
if isinstance(height, tuple):
if height[0] == 'fixed top':
if not isinstance(valign, tuple) or valign[0] != 'fixed bottom':
- raise FillerError("fixed bottom height may only be used "
- "with fixed top valign")
+ raise FillerError("fixed top height may only be used "
+ "with fixed bottom valign")
top = height[1]
height = RELATIVE_100
elif height[0] == 'fixed bottom':
if not isinstance(valign, tuple) or valign[0] != 'fixed top':
- raise FillerError("fixed top height may only be used "
- "with fixed bottom valign")
+ raise FillerError("fixed bottom height may only be used "
+ "with fixed top valign")
bottom = height[1]
height = RELATIVE_100
if isinstance(valign, tuple):