I am adding some user feedback to a plugin. I have followed the pyqgis developer cookbook to create a message as below.
self.iface.messageBar().clearWidgets()
messagelinktext = 'something is happening'
self.iface.messageBar().pushMessage("", messagelinktext, Qgis.Warning, duration=10)
This works fine but I would like to show a sequence of messages and at the moment the various steps take a while to execute but only the last message is displayed once the operations have been completed.