Plugins/PluginWizardQMessageBox.py

changeset 2407
b98cc8ee1142
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2712
4354ab0b67c7
equal deleted inserted replaced
2406:975af671146d 2407:b98cc8ee1142
11 from PyQt4.QtGui import QDialog 11 from PyQt4.QtGui import QDialog
12 12
13 from E5Gui.E5Application import e5App 13 from E5Gui.E5Application import e5App
14 from E5Gui.E5Action import E5Action 14 from E5Gui.E5Action import E5Action
15 from E5Gui import E5MessageBox 15 from E5Gui import E5MessageBox
16
17 from WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog import \
18 MessageBoxWizardDialog
19 16
20 # Start-Of-Header 17 # Start-Of-Header
21 name = "QMessageBox Wizard Plugin" 18 name = "QMessageBox Wizard Plugin"
22 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 19 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
23 autoactivate = True 20 autoactivate = True
97 Private method to display a dialog and get the code. 94 Private method to display a dialog and get the code.
98 95
99 @param editor reference to the current editor 96 @param editor reference to the current editor
100 @return the generated code (string) 97 @return the generated code (string)
101 """ 98 """
99 from WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog import \
100 MessageBoxWizardDialog
102 dlg = MessageBoxWizardDialog(None) 101 dlg = MessageBoxWizardDialog(None)
103 if dlg.exec_() == QDialog.Accepted: 102 if dlg.exec_() == QDialog.Accepted:
104 line, index = editor.getCursorPosition() 103 line, index = editor.getCursorPosition()
105 indLevel = editor.indentation(line) // editor.indentationWidth() 104 indLevel = editor.indentation(line) // editor.indentationWidth()
106 if editor.indentationsUseTabs(): 105 if editor.indentationsUseTabs():

eric ide

mercurial