diff options
author | Erik Rose <erik@mozilla.com> | 2011-11-18 13:28:39 -0800 |
---|---|---|
committer | Erik Rose <erik@mozilla.com> | 2011-11-18 13:28:39 -0800 |
commit | fd2133a29c6fa34b1b3022dd17bf8ebcbd9de6c2 (patch) | |
tree | d5999923f4dce0657cfd460084155b6d8beb0065 /README.rst | |
parent | 163838a93f4a4fac40ab881b6691bb1cecb6e898 (diff) | |
download | blessings-fd2133a29c6fa34b1b3022dd17bf8ebcbd9de6c2.tar.gz |
Tweak readme and a comment.
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -177,9 +177,13 @@ everything back to normal afterward:: print term.bold_underline_green_on_yellow('Woo') +This compound notation comes in handy if you want to allow users to customize +the formatting of your app: just have them pass in a format specifier like +"bold_green" on the command line, and do a quick ``getattr(term, +that_option)('Your text')`` when you do your formatting. + I'd be remiss if I didn't credit couleur_, where I probably got the idea for -all this mashing. It doesn't mix non-color styles in, but we started at the -same place. +all this mashing. .. _couleur: http://pypi.python.org/pypi/couleur |