From 4f7de1aef239c9ccdf85d62e0384ff9a62f49fb3 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Wed, 15 Feb 2017 22:35:43 +0300 Subject: [PATCH] Handle 'end' parameter for print() in tkinter GUI --- blockcheck.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blockcheck.py b/blockcheck.py index a8bdd9c..e4bcf7e 100755 --- a/blockcheck.py +++ b/blockcheck.py @@ -97,6 +97,10 @@ def print(*args, **kwargs): if tkusable: for arg in args: text.write(str(arg)) + for key, value in kwargs.items(): + if key == 'end': + text.write(value) + return text.write("\n") else: if args and sys.stdout.encoding != 'UTF-8':