Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

branch
5_3_x
changeset 2753
997fec8d8000
parent 2302
f29e9405c851
child 2773
a6d129e83b21
equal deleted inserted replaced
2735:d40057b69abb 2753:997fec8d8000
83 self.nextButton.setToolTip( 83 self.nextButton.setToolTip(
84 self.trUtf8("Show the next match of the regular expression")) 84 self.trUtf8("Show the next match of the regular expression"))
85 self.nextButton.setEnabled(False) 85 self.nextButton.setEnabled(False)
86 86
87 if fromEric: 87 if fromEric:
88 self.buttonBox.button(QDialogButtonBox.Close).hide() 88 self.buttonBox.setStandardButtons(
89 QDialogButtonBox.Cancel | QDialogButtonBox.Ok)
89 self.copyButton = None 90 self.copyButton = None
90 else: 91 else:
91 self.copyButton = \ 92 self.copyButton = \
92 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) 93 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole)
93 self.copyButton.setToolTip( 94 self.copyButton.setToolTip(
94 self.trUtf8("Copy the regular expression to the clipboard")) 95 self.trUtf8("Copy the regular expression to the clipboard"))
95 self.buttonBox.button(QDialogButtonBox.Ok).hide() 96 self.buttonBox.setStandardButtons(QDialogButtonBox.Close)
96 self.buttonBox.button(QDialogButtonBox.Cancel).hide()
97 self.variableLabel.hide() 97 self.variableLabel.hide()
98 self.variableLineEdit.hide() 98 self.variableLineEdit.hide()
99 self.variableLine.hide() 99 self.variableLine.hide()
100 self.importCheckBox.hide() 100 self.importCheckBox.hide()
101 self.regexpTextEdit.setFocus() 101 self.regexpTextEdit.setFocus()

eric ide

mercurial