src/eric7/Plugins/PluginWizardSetup.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
9 9
10 import functools 10 import functools
11 11
12 from PyQt6.QtCore import QObject 12 from PyQt6.QtCore import QObject
13 13
14 from EricWidgets.EricApplication import ericApp 14 from eric7.EricWidgets.EricApplication import ericApp
15 from EricGui.EricAction import EricAction 15 from eric7.EricGui.EricAction import EricAction
16 from EricWidgets import EricMessageBox 16 from eric7.EricWidgets import EricMessageBox
17 17
18 import UI.Info 18 from eric7.UI import Info
19 19
20 # Start-of-Header 20 # Start-of-Header
21 name = "setup.py Wizard Plug-in" 21 name = "setup.py Wizard Plug-in"
22 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 22 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
23 autoactivate = True 23 autoactivate = True
24 deactivateable = True 24 deactivateable = True
25 version = UI.Info.VersionOnly 25 version = 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"""
160 Private method to handle the wizards action. 160 Private method to handle the wizards action.
161 161
162 @param category category of setup file to create 162 @param category category of setup file to create
163 @type str 163 @type str
164 """ 164 """
165 from WizardPlugins.SetupWizard.SetupWizardDialog import SetupWizardDialog 165 from eric7.Plugins.WizardPlugins.SetupWizard.SetupWizardDialog import (
166 SetupWizardDialog,
167 )
166 168
167 editor = ericApp().getObject("ViewManager").activeWindow() 169 editor = ericApp().getObject("ViewManager").activeWindow()
168 170
169 if editor is None: 171 if editor is None:
170 EricMessageBox.critical( 172 EricMessageBox.critical(

eric ide

mercurial