src/eric7/Plugins/PluginWizardDotDesktop.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
8 """ 8 """
9 9
10 from PyQt6.QtCore import QObject 10 from PyQt6.QtCore import QObject
11 from PyQt6.QtWidgets import QDialog 11 from PyQt6.QtWidgets import QDialog
12 12
13 from EricWidgets.EricApplication import ericApp 13 from eric7.EricWidgets.EricApplication import ericApp
14 from EricGui.EricAction import EricAction 14 from eric7.EricGui.EricAction import EricAction
15 from EricWidgets import EricMessageBox 15 from eric7.EricWidgets import EricMessageBox
16 16
17 import UI.Info 17 from eric7.UI import Info
18 18
19 # Start-of-Header 19 # Start-of-Header
20 name = ".desktop Wizard Plug-in" 20 name = ".desktop Wizard Plug-in"
21 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 21 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
22 autoactivate = True 22 autoactivate = True
23 deactivateable = True 23 deactivateable = True
24 version = UI.Info.VersionOnly 24 version = Info.VersionOnly
25 className = "DotDesktopWizard" 25 className = "DotDesktopWizard"
26 packageName = "__core__" 26 packageName = "__core__"
27 shortDescription = "Wizard for the creation of a .desktop file." 27 shortDescription = "Wizard for the creation of a .desktop file."
28 longDescription = ( 28 longDescription = (
29 """This plug-in implements a wizard to generate code for""" """ a .desktop file.""" 29 """This plug-in implements a wizard to generate code for""" """ a .desktop file."""
135 ) 135 )
136 if not ok: 136 if not ok:
137 ericApp().getObject("ViewManager").newEditor() 137 ericApp().getObject("ViewManager").newEditor()
138 editor = ericApp().getObject("ViewManager").activeWindow() 138 editor = ericApp().getObject("ViewManager").activeWindow()
139 139
140 from WizardPlugins.DotDesktopWizard.DotDesktopWizardDialog import ( 140 from eric7.Plugins.WizardPlugins.DotDesktopWizard.DotDesktopWizardDialog import (
141 # __IGNORE_WARNING__
141 DotDesktopWizardDialog, 142 DotDesktopWizardDialog,
142 ) 143 )
143 144
144 dlg = DotDesktopWizardDialog(None) 145 dlg = DotDesktopWizardDialog(None)
145 if dlg.exec() == QDialog.DialogCode.Accepted: 146 if dlg.exec() == QDialog.DialogCode.Accepted:

eric ide

mercurial