def delayDisplay(self,message,msec=1000):
    print(message)
    self.info = qt.QDialog()
    self.infoLayout = qt.QVBoxLayout()
    self.info.setLayout(self.infoLayout)
    self.label = qt.QLabel(message,self.info)
    self.infoLayout.addWidget(self.label)
    qt.QTimer.singleShot(msec, self.info.close)
    self.info.exec_()
This utility method displays a small dialog and waits.
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PectoralisSegmentation/PectoralisSegmentation.py/PectoralisSegmentationTest.delayDisplay