eric6/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

changeset 7960
e8fc383322f7
parent 7923
91e843545d9a
child 8143
2c730d5fd177
equal deleted inserted replaced
7959:44e15eda6506 7960:e8fc383322f7
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 eric6 40 @param fromEric flag indicating a call from within eric
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
379 @pyqtSlot() 379 @pyqtSlot()
380 def on_copyButton_clicked(self): 380 def on_copyButton_clicked(self):
381 """ 381 """
382 Private slot to copy the regexp string into the clipboard. 382 Private slot to copy the regexp string into the clipboard.
383 383
384 This slot is only available, if not called from within eric6. 384 This slot is only available, if not called from within eric.
385 """ 385 """
386 escaped = self.regexpTextEdit.toPlainText() 386 escaped = self.regexpTextEdit.toPlainText()
387 if escaped: 387 if escaped:
388 escaped = escaped.replace("\\", "\\\\") 388 escaped = escaped.replace("\\", "\\\\")
389 cb = QApplication.clipboard() 389 cb = QApplication.clipboard()
647 def __init__(self, parent=None, fromEric=True): 647 def __init__(self, parent=None, fromEric=True):
648 """ 648 """
649 Constructor 649 Constructor
650 650
651 @param parent parent widget (QWidget) 651 @param parent parent widget (QWidget)
652 @param fromEric flag indicating a call from within eric6 652 @param fromEric flag indicating a call from within eric
653 """ 653 """
654 super(PyRegExpWizardDialog, self).__init__(parent) 654 super(PyRegExpWizardDialog, self).__init__(parent)
655 self.setModal(fromEric) 655 self.setModal(fromEric)
656 self.setSizeGripEnabled(True) 656 self.setSizeGripEnabled(True)
657 657

eric ide

mercurial