Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

changeset 15
f6ccc31d6e72
parent 13
1af94a91f439
child 45
9a18f4dbb493
equal deleted inserted replaced
14:092aa8fafa4e 15:f6ccc31d6e72
30 def __init__(self, parent = None, fromEric = True): 30 def __init__(self, parent = None, fromEric = True):
31 """ 31 """
32 Constructor 32 Constructor
33 33
34 @param parent parent widget (QWidget) 34 @param parent parent widget (QWidget)
35 @param fromEric flag indicating a call from within eric4 35 @param fromEric flag indicating a call from within eric5
36 """ 36 """
37 QWidget.__init__(self,parent) 37 QWidget.__init__(self,parent)
38 self.setupUi(self) 38 self.setupUi(self)
39 39
40 # initialize icons of the tool buttons 40 # initialize icons of the tool buttons
356 @pyqtSlot() 356 @pyqtSlot()
357 def on_copyButton_clicked(self): 357 def on_copyButton_clicked(self):
358 """ 358 """
359 Private slot to copy the regexp string into the clipboard. 359 Private slot to copy the regexp string into the clipboard.
360 360
361 This slot is only available, if not called from within eric4. 361 This slot is only available, if not called from within eric5.
362 """ 362 """
363 escaped = self.regexpTextEdit.toPlainText() 363 escaped = self.regexpTextEdit.toPlainText()
364 if escaped: 364 if escaped:
365 escaped = escaped.replace("\\", "\\\\") 365 escaped = escaped.replace("\\", "\\\\")
366 cb = QApplication.clipboard() 366 cb = QApplication.clipboard()
631 def __init__(self, parent = None, fromEric = True): 631 def __init__(self, parent = None, fromEric = True):
632 """ 632 """
633 Constructor 633 Constructor
634 634
635 @param parent parent widget (QWidget) 635 @param parent parent widget (QWidget)
636 @param fromEric flag indicating a call from within eric4 636 @param fromEric flag indicating a call from within eric5
637 """ 637 """
638 QDialog.__init__(self, parent) 638 QDialog.__init__(self, parent)
639 self.setModal(fromEric) 639 self.setModal(fromEric)
640 self.setSizeGripEnabled(True) 640 self.setSizeGripEnabled(True)
641 641

eric ide

mercurial