Hi everyone,
I'm new to qt and pyside. Now I'm trying to create a message box in pyside, could you tell me how to do that?
Hi everyone,
I'm new to qt and pyside. Now I'm trying to create a message box in pyside, could you tell me how to do that?
Something like this:
Qt Code:
#!/usr/bin/python # -*- coding: utf-8 -*- import sys from PySide import QtGui def main(): msgBox.setText('Cool message') msgBox.show(); sys.exit(app.exec_()) if __name__ == '__main__': main()To copy to clipboard, switch view to plain text mode
Chris is right, you need use QMessageBox. If you want to add more buttons to the message box, you can check this post
Bookmarks