Can you add a test for this? It would be good to keep our code coverage increasing. You could add a logging handler that dumps to a file, and then check to make sure the message was passed for the `on_paint` use case.