eric6/Plugins/PluginWizardSetup.py

changeset 7256
4ef3b78ebb4e
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7255:d595f6f9cbf8 7256:4ef3b78ebb4e
24 deactivateable = True 24 deactivateable = True
25 version = UI.Info.VersionOnly 25 version = UI.Info.VersionOnly
26 className = "SetupWizard" 26 className = "SetupWizard"
27 packageName = "__core__" 27 packageName = "__core__"
28 shortDescription = "Wizard for the creation of a setup.py file." 28 shortDescription = "Wizard for the creation of a setup.py file."
29 longDescription = \ 29 longDescription = (
30 """This plug-in implements a wizard to generate code for""" \ 30 """This plug-in implements a wizard to generate code for"""
31 """ a setup.py file. It supports the 'distutils' and 'setuptools'""" \ 31 """ a setup.py file. It supports the 'distutils' and 'setuptools'"""
32 """ variants.""" 32 """ variants."""
33 )
33 needsRestart = False 34 needsRestart = False
34 pyqtApi = 2 35 pyqtApi = 2
35 # End-of-Header 36 # End-of-Header
36 37
37 error = "" 38 error = ""
111 Private method to display a dialog and get the code. 112 Private method to display a dialog and get the code.
112 113
113 @param editor reference to the current editor 114 @param editor reference to the current editor
114 @return the generated code (string) 115 @return the generated code (string)
115 """ 116 """
116 from WizardPlugins.SetupWizard.SetupWizardDialog import \ 117 from WizardPlugins.SetupWizard.SetupWizardDialog import (
117 SetupWizardDialog 118 SetupWizardDialog
119 )
118 dlg = SetupWizardDialog(None) 120 dlg = SetupWizardDialog(None)
119 if dlg.exec_() == QDialog.Accepted: 121 if dlg.exec_() == QDialog.Accepted:
120 line, index = editor.getCursorPosition() 122 line, index = editor.getCursorPosition()
121 indLevel = editor.indentation(line) // editor.indentationWidth() 123 indLevel = editor.indentation(line) // editor.indentationWidth()
122 if editor.indentationsUseTabs(): 124 if editor.indentationsUseTabs():

eric ide

mercurial