]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38830: Correct slot signature in Qt example. (GH-17220)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 18 Nov 2019 12:03:22 +0000 (12:03 +0000)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2019 12:03:22 +0000 (12:03 +0000)
Doc/howto/logging-cookbook.rst

index 9f52780af4fc2d88500f93010bda8f2619f6ddd1..17f4ff6e474c23ef688d97600484176f82cf53a7 100644 (file)
@@ -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)