--- a/PluginPyInstaller.py Sat Dec 23 16:30:39 2023 +0100 +++ b/PluginPyInstaller.py Tue Oct 29 17:39:59 2024 +0100 @@ -27,21 +27,24 @@ from eric7.Utilities import getEnvironmentEntry # Start-Of-Header -name = "PyInstaller Plugin" -author = "Detlev Offenbach <detlev@die-offenbachs.de>" -autoactivate = True -deactivateable = True -version = "10.2.0" -className = "PyInstallerPlugin" -packageName = "PyInstallerInterface" -shortDescription = "Show dialogs to configure and execute PyInstaller." -longDescription = ( - """This plug-in implements dialogs to configure and execute PyInstaller""" - """ for an eric project. PyInstaller must be available or must be""" - """ installed via 'pip install PyInstaller'.""" -) -needsRestart = False -pyqtApi = 2 +__header__ = { + "name": "PyInstaller Plugin", + "author": "Detlev Offenbach <detlev@die-offenbachs.de>", + "autoactivate": True, + "deactivateable": True, + "version": "10.3.0", + "className": "PyInstallerPlugin", + "packageName": "PyInstallerInterface", + "shortDescription": "Show dialogs to configure and execute PyInstaller.", + "longDescription": ( + "This plug-in implements dialogs to configure and execute PyInstaller" + " for an eric project. PyInstaller must be available or must be" + " installed via 'pip install PyInstaller'." + ), + "needsRestart": False, + "hasCompiledForms": True, + "pyqtApi": 2, +} # End-Of-Header error = "" @@ -457,14 +460,14 @@ params = project.getData("PACKAGERSPARMS", "PYINSTALLER") dlg = PyInstallerConfigDialog( - project, executables, params, mode="installer" + project, executables, params, mode="installer", parent=self.__ui ) if dlg.exec() == QDialog.DialogCode.Accepted: args, params, script = dlg.generateParameters() project.setData("PACKAGERSPARMS", "PYINSTALLER", params) # now do the call - dia = PyInstallerExecDialog("pyinstaller") + dia = PyInstallerExecDialog("pyinstaller", parent=self.__ui) dia.show() res = dia.start(args, project, script) if res: @@ -498,13 +501,15 @@ return params = project.getData("PACKAGERSPARMS", "PYINSTALLER") - dlg = PyInstallerConfigDialog(project, executables, params, mode="spec") + dlg = PyInstallerConfigDialog( + project, executables, params, mode="spec", parent=self.__ui + ) if dlg.exec() == QDialog.DialogCode.Accepted: args, params, script = dlg.generateParameters() project.setData("PACKAGERSPARMS", "PYINSTALLER", params) # now do the call - dia = PyInstallerExecDialog("pyinstaller") + dia = PyInstallerExecDialog("pyi-makespec", parent=self.__ui) dia.show() res = dia.start(args, project, script) if res: @@ -521,7 +526,7 @@ project = ericApp().getObject("Project") - dlg = PyInstallerCleanupDialog() + dlg = PyInstallerCleanupDialog(parent=self.__ui) if dlg.exec() == QDialog.DialogCode.Accepted: removeDirs = dlg.getDirectories() for directory in removeDirs: