Templates/TemplatePropertiesDialog.py

changeset 3591
2f2a4a76dd22
parent 3515
1b8381afe38f
child 3656
441956d8fce5
equal deleted inserted replaced
3590:5280e37405b8 3591:2f2a4a76dd22
91 91
92 self.nameEdit.selectAll() 92 self.nameEdit.selectAll()
93 93
94 def keyPressEvent(self, ev): 94 def keyPressEvent(self, ev):
95 """ 95 """
96 Re-implemented to handle the user pressing the escape key. 96 Protected method to handle the user pressing the escape key.
97 97
98 @param ev key event (QKeyEvent) 98 @param ev key event (QKeyEvent)
99 """ 99 """
100 if ev.key() == Qt.Key_Escape: 100 if ev.key() == Qt.Key_Escape:
101 res = E5MessageBox.yesNo( 101 res = E5MessageBox.yesNo(
106 self.reject() 106 self.reject()
107 107
108 @pyqtSlot() 108 @pyqtSlot()
109 def on_helpButton_clicked(self): 109 def on_helpButton_clicked(self):
110 """ 110 """
111 Public slot to show some help. 111 Private slot to show some help.
112 """ 112 """
113 E5MessageBox.information( 113 E5MessageBox.information(
114 self, 114 self,
115 self.tr("Template Help"), 115 self.tr("Template Help"),
116 self.tr( 116 self.tr(

eric ide

mercurial