From: Vinay Sajip Date: Mon, 18 Nov 2019 12:03:22 +0000 (+0000) Subject: bpo-38830: Correct slot signature in Qt example. (GH-17220) X-Git-Tag: v3.9.0a1~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5383956583bb758f3828513bcdd011871f24a0e8;p=thirdparty%2FPython%2Fcpython.git bpo-38830: Correct slot signature in Qt example. (GH-17220) --- diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index 9f52780af4fc..17f4ff6e474c 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 = '
%s
' % (color, status)