diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-21 14:51:26 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-21 14:52:09 -0300 |
commit | 9af36fbb64f19842c0cc797c0b586b3a686805e8 (patch) | |
tree | 6bbc050ded0f85517ea75f5dc6dc1ed172168248 /tests/util/color.py | |
parent | aa12538d63685ef8f75adaa79411b751929b727d (diff) |
Added all original pyside unit tests to the shiboken version.
Diffstat (limited to 'tests/util/color.py')
-rw-r--r-- | tests/util/color.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/util/color.py b/tests/util/color.py new file mode 100644 index 000000000..4ddd31cab --- /dev/null +++ b/tests/util/color.py @@ -0,0 +1,12 @@ + +'''Function to print a colored line to terminal''' + +RED='\033[0;31m%s\033[m' + +def print_colored(message, color=RED): + print color % message + +if __name__ == '__main__': + print '42 - the answer' + print_colored("But what's the question?") + print 'Hum?' |