11 import os |
11 import os |
12 import re |
12 import re |
13 |
13 |
14 from PyQt5.QtCore import QFileInfo, pyqtSlot |
14 from PyQt5.QtCore import QFileInfo, pyqtSlot |
15 from PyQt5.QtGui import QClipboard, QTextCursor |
15 from PyQt5.QtGui import QClipboard, QTextCursor |
16 from PyQt5.QtWidgets import QWidget, QDialog, QInputDialog, QApplication, \ |
16 from PyQt5.QtWidgets import ( |
17 QDialogButtonBox, QVBoxLayout, QTableWidgetItem |
17 QWidget, QDialog, QInputDialog, QApplication, QDialogButtonBox, |
|
18 QVBoxLayout, QTableWidgetItem |
|
19 ) |
18 |
20 |
19 from E5Gui import E5MessageBox, E5FileDialog |
21 from E5Gui import E5MessageBox, E5FileDialog |
20 from E5Gui.E5MainWindow import E5MainWindow |
22 from E5Gui.E5MainWindow import E5MainWindow |
21 |
23 |
22 from .Ui_PyRegExpWizardDialog import Ui_PyRegExpWizardDialog |
24 from .Ui_PyRegExpWizardDialog import Ui_PyRegExpWizardDialog |
269 @pyqtSlot() |
271 @pyqtSlot() |
270 def on_charButton_clicked(self): |
272 def on_charButton_clicked(self): |
271 """ |
273 """ |
272 Private slot to handle the characters toolbutton. |
274 Private slot to handle the characters toolbutton. |
273 """ |
275 """ |
274 from .PyRegExpWizardCharactersDialog import \ |
276 from .PyRegExpWizardCharactersDialog import ( |
275 PyRegExpWizardCharactersDialog |
277 PyRegExpWizardCharactersDialog |
|
278 ) |
276 dlg = PyRegExpWizardCharactersDialog(self) |
279 dlg = PyRegExpWizardCharactersDialog(self) |
277 if dlg.exec_() == QDialog.Accepted: |
280 if dlg.exec_() == QDialog.Accepted: |
278 self.__insertString(dlg.getCharacters()) |
281 self.__insertString(dlg.getCharacters()) |
279 |
282 |
280 @pyqtSlot() |
283 @pyqtSlot() |