Skip to content

Commit

Permalink
bpo-38830: Correct slot signature in Qt example. (pythonGH-17220)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip authored Nov 18, 2019
1 parent 59c8088 commit 5383956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/howto/logging-cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5383956

Please sign in to comment.