pyqt message box set information text 1

pyqt message box set information text

msg.setInformativeText("This is additional information")

Here is what the above code is Doing:
1. We create a QMessageBox object.
2. We set the window title using the setWindowTitle() method.
3. We set the text to be displayed using the setText() method.
4. We set the icon using the setIcon() method.
5. We set the text to be displayed on the button using the setInformativeText() method.

Similar Posts