[Python-checkins] [3.8] bpo-38830: Correct slot signature in Qt example. (GH-17220) (GH-17221)

Vinay Sajip webhook-mailer at python.org
Mon Nov 18 07:23:53 EST 2019


https://github.com/python/cpython/commit/21eb731057d614fb642c609ae89f66d75fa0ac3a
commit: 21eb731057d614fb642c609ae89f66d75fa0ac3a
branch: 3.8
author: Vinay Sajip <vinay_sajip at yahoo.co.uk>
committer: GitHub <noreply at github.com>
date: 2019-11-18T12:23:46Z
summary:

[3.8] bpo-38830: Correct slot signature in Qt example. (GH-17220) (GH-17221)

(cherry picked from commit 5383956583bb758f3828513bcdd011871f24a0e8)

files:
M Doc/howto/logging-cookbook.rst

diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 9f52780af4fc2..17f4ff6e474c2 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)



More information about the Python-checkins mailing list