Skip to content

Instantly share code, notes, and snippets.

@simonreeves
simonreeves / pysideDialogExamples.py
Created October 11, 2017 16:49 — forked from tcrowson/pysideDialogExamples.py
Examples of simple PySide dialogs
from PySide.QtGui import *
# create a modal message box with a single 'Ok' button
box = QMessageBox()
box.setWindowTitle('Title')
box.setText('Text')
box.exec_()
# create a modal message box that offers some choices (Yes|No|Cancel)