summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2019-11-18 12:23:46 (GMT)
committerGitHub <noreply@github.com>2019-11-18 12:23:46 (GMT)
commit21eb731057d614fb642c609ae89f66d75fa0ac3a (patch)
tree1bf6d0e31136258137251af74770d3c3b4d9a1a8 /Doc/howto
parent39134b374fd506c5f0f6d232e259ba48c651d88f (diff)
downloadcpython-21eb731057d614fb642c609ae89f66d75fa0ac3a.zip
cpython-21eb731057d614fb642c609ae89f66d75fa0ac3a.tar.gz
cpython-21eb731057d614fb642c609ae89f66d75fa0ac3a.tar.bz2
[3.8] bpo-38830: Correct slot signature in Qt example. (GH-17220) (GH-17221)
(cherry picked from commit 5383956583bb758f3828513bcdd011871f24a0e8)
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/logging-cookbook.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 9f52780..17f4ff6 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -2949,7 +2949,7 @@ refer to the comments in the code snippet for more detailed information.
# The functions below update the UI and run in the main thread because
# that's where the slots are set up
- @Slot(str)
+ @Slot(str, logging.LogRecord)
def update_status(self, status, record):
color = self.COLORS.get(record.levelno, 'black')
s = '<pre><font color="%s">%s</font></pre>' % (color, status)