bpo-38830: Correct slot signature in Qt example. (GH-17220)

This commit is contained in:
Vinay Sajip 2019-11-18 12:03:22 +00:00 committed by GitHub
parent 59c80889ff
commit 5383956583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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)