|
|
|
@ -207,7 +207,7 @@ class ControlButtonWgt(QtGui.QWidget):
|
|
|
|
|
if field.guitype == "readonly":
|
|
|
|
|
button.setDisabled(True)
|
|
|
|
|
end_layout.addWidget(button)
|
|
|
|
|
if not has_next:
|
|
|
|
|
if not has_next and button:
|
|
|
|
|
button.setShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Return))
|
|
|
|
|
button.setShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Enter))
|
|
|
|
|
self.default_button = button
|
|
|
|
@ -239,7 +239,10 @@ class ControlButtonWgt(QtGui.QWidget):
|
|
|
|
|
# создать кнопку отмена
|
|
|
|
|
main_frame = self._parent.MainFrameWgt
|
|
|
|
|
self.cancel_button = QtGui.QPushButton(self)
|
|
|
|
|
self.cancel_button.setText(_('Cancel').decode('utf-8'))
|
|
|
|
|
if main_frame.mutable:
|
|
|
|
|
self.cancel_button.setText(_('Cancel').decode('utf-8'))
|
|
|
|
|
else:
|
|
|
|
|
self.cancel_button.setText(_('Close').decode('utf-8'))
|
|
|
|
|
|
|
|
|
|
self.cancel_button.clicked.connect(self.button_disabled)
|
|
|
|
|
self.cancel_button.clicked.connect(self.clear_method_cache)
|
|
|
|
|