simple dialog (questio, OK, Cancel) with Python using PyQt4 simple dialog (questio, OK, Cancel) with Python using PyQt4 tkinter tkinter

simple dialog (questio, OK, Cancel) with Python using PyQt4


There is QMessageBox and you can do message box in one line of code.

http://pyqt.sourceforge.net/Docs/PyQt4/qmessagebox.html

example from page: http://zetcode.com/gui/pyqt4/firstprograms/

    reply = QtGui.QMessageBox.question(self, 'Message',        "Are you sure to quit?", QtGui.QMessageBox.Yes |         QtGui.QMessageBox.No, QtGui.QMessageBox.No)    if reply == QtGui.QMessageBox.Yes:        print("YES")    else:        print("NO")