Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

changeset 2752
5d556f9040e3
parent 2407
b98cc8ee1142
child 2772
8e88a2bae65b
equal deleted inserted replaced
2751:5f7d5ce932fc 2752:5d556f9040e3
80 self.nextButton.setToolTip( 80 self.nextButton.setToolTip(
81 self.trUtf8("Show the next match of the regular expression")) 81 self.trUtf8("Show the next match of the regular expression"))
82 self.nextButton.setEnabled(False) 82 self.nextButton.setEnabled(False)
83 83
84 if fromEric: 84 if fromEric:
85 self.buttonBox.button(QDialogButtonBox.Close).hide() 85 self.buttonBox.setStandardButtons(
86 QDialogButtonBox.Cancel | QDialogButtonBox.Ok)
86 self.copyButton = None 87 self.copyButton = None
87 else: 88 else:
88 self.copyButton = \ 89 self.copyButton = \
89 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) 90 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole)
90 self.copyButton.setToolTip( 91 self.copyButton.setToolTip(
91 self.trUtf8("Copy the regular expression to the clipboard")) 92 self.trUtf8("Copy the regular expression to the clipboard"))
92 self.buttonBox.button(QDialogButtonBox.Ok).hide() 93 self.buttonBox.setStandardButtons(QDialogButtonBox.Close)
93 self.buttonBox.button(QDialogButtonBox.Cancel).hide()
94 self.variableLabel.hide() 94 self.variableLabel.hide()
95 self.variableLineEdit.hide() 95 self.variableLineEdit.hide()
96 self.variableLine.hide() 96 self.variableLine.hide()
97 self.importCheckBox.hide() 97 self.importCheckBox.hide()
98 self.regexpTextEdit.setFocus() 98 self.regexpTextEdit.setFocus()

eric ide

mercurial