Templates/TemplatePropertiesDialog.py

changeset 538
7f1a56e80124
parent 536
6d8d39753c82
child 541
00e1a5d060c5
equal deleted inserted replaced
537:72b32daeb8d6 538:7f1a56e80124
90 Re-implemented to handle the user pressing the escape key. 90 Re-implemented to handle the user pressing the escape key.
91 91
92 @param ev key event (QKeyEvent) 92 @param ev key event (QKeyEvent)
93 """ 93 """
94 if ev.key() == Qt.Key_Escape: 94 if ev.key() == Qt.Key_Escape:
95 res = QMessageBox.question(self, 95 res = E5MessageBox.question(self,
96 self.trUtf8("Close dialog"), 96 self.trUtf8("Close dialog"),
97 self.trUtf8("""Do you really want to close the dialog?"""), 97 self.trUtf8("""Do you really want to close the dialog?"""),
98 QMessageBox.StandardButtons(\ 98 QMessageBox.StandardButtons(\
99 QMessageBox.No | \ 99 QMessageBox.No | \
100 QMessageBox.Yes), 100 QMessageBox.Yes),

eric ide

mercurial