35 def __init__(self, parent=None, fromEric=True): |
35 def __init__(self, parent=None, fromEric=True): |
36 """ |
36 """ |
37 Constructor |
37 Constructor |
38 |
38 |
39 @param parent parent widget (QWidget) |
39 @param parent parent widget (QWidget) |
40 @param fromEric flag indicating a call from within eric5 |
40 @param fromEric flag indicating a call from within eric6 |
41 """ |
41 """ |
42 super(PyRegExpWizardWidget, self).__init__(parent) |
42 super(PyRegExpWizardWidget, self).__init__(parent) |
43 self.setupUi(self) |
43 self.setupUi(self) |
44 |
44 |
45 # initialize icons of the tool buttons |
45 # initialize icons of the tool buttons |
380 @pyqtSlot() |
380 @pyqtSlot() |
381 def on_copyButton_clicked(self): |
381 def on_copyButton_clicked(self): |
382 """ |
382 """ |
383 Private slot to copy the regexp string into the clipboard. |
383 Private slot to copy the regexp string into the clipboard. |
384 |
384 |
385 This slot is only available, if not called from within eric5. |
385 This slot is only available, if not called from within eric6. |
386 """ |
386 """ |
387 escaped = self.regexpTextEdit.toPlainText() |
387 escaped = self.regexpTextEdit.toPlainText() |
388 if escaped: |
388 if escaped: |
389 escaped = escaped.replace("\\", "\\\\") |
389 escaped = escaped.replace("\\", "\\\\") |
390 cb = QApplication.clipboard() |
390 cb = QApplication.clipboard() |
691 def __init__(self, parent=None, fromEric=True): |
691 def __init__(self, parent=None, fromEric=True): |
692 """ |
692 """ |
693 Constructor |
693 Constructor |
694 |
694 |
695 @param parent parent widget (QWidget) |
695 @param parent parent widget (QWidget) |
696 @param fromEric flag indicating a call from within eric5 |
696 @param fromEric flag indicating a call from within eric6 |
697 """ |
697 """ |
698 super(PyRegExpWizardDialog, self).__init__(parent) |
698 super(PyRegExpWizardDialog, self).__init__(parent) |
699 self.setModal(fromEric) |
699 self.setModal(fromEric) |
700 self.setSizeGripEnabled(True) |
700 self.setSizeGripEnabled(True) |
701 |
701 |