Tue, 29 Oct 2024 17:39:59 +0100
- changed to the new style header
- ensured proper parent relationship of modal dialogs
- included compiled form files
--- a/.hgignore Sat Dec 23 16:30:39 2023 +0100 +++ b/.hgignore Tue Oct 29 17:39:59 2024 +0100 @@ -1,4 +1,3 @@ -glob:.eric6project glob:.eric7project glob:.ropeproject glob:.jedi @@ -13,4 +12,3 @@ glob:tmp glob:__pycache__ glob:**.DS_Store -glob:**Ui_*.py
--- a/ChangeLog Sat Dec 23 16:30:39 2023 +0100 +++ b/ChangeLog Tue Oct 29 17:39:59 2024 +0100 @@ -1,5 +1,10 @@ ChangeLog --------- +Version 10.3.0 +- changed to the new style header +- ensured proper parent relationship of modal dialogs +- included compiled form files + Version 10.2.0 - adapted some import statements to eric 23.1 and newer
--- a/PKGLIST Sat Dec 23 16:30:39 2023 +0100 +++ b/PKGLIST Tue Oct 29 17:39:59 2024 +0100 @@ -6,6 +6,9 @@ PyInstallerInterface/PyInstallerConfigDialog.ui PyInstallerInterface/PyInstallerExecDialog.py PyInstallerInterface/PyInstallerExecDialog.ui +PyInstallerInterface/Ui_PyInstallerCleanupDialog.py +PyInstallerInterface/Ui_PyInstallerConfigDialog.py +PyInstallerInterface/Ui_PyInstallerExecDialog.py PyInstallerInterface/__init__.py PyInstallerInterface/i18n/pyinstaller_de.qm PyInstallerInterface/i18n/pyinstaller_en.qm
--- a/PluginPyInstaller.epj Sat Dec 23 16:30:39 2023 +0100 +++ b/PluginPyInstaller.epj Tue Oct 29 17:39:59 2024 +0100 @@ -1,7 +1,7 @@ { "header": { "comment": "eric project file for project PluginPyInstaller", - "copyright": "Copyright (C) 2023 Detlev Offenbach, detlev@die-offenbachs.de" + "copyright": "Copyright (C) 2024 Detlev Offenbach, detlev@die-offenbachs.de" }, "project": { "AUTHOR": "Detlev Offenbach", @@ -27,6 +27,7 @@ "OverloadDecorators": [ "overload" ], + "RespectTypeIgnore": false, "SuppressDummyArgs": false, "SuppressNoneReturning": true }, @@ -68,7 +69,7 @@ "DocstringType": "eric_black", "EnabledCheckerCategories": "C, D, E, I, L, M, NO, N, S, Y, U, W", "ExcludeFiles": "*/Ui_*.py, */*_rc.py,", - "ExcludeMessages": "C101,E265,E266,E305,E402,M201,M301,M302,M303,M304,M305,M306,M307,M308,M311,M312,M313,M314,M315,M321,M701,M702,M811,M834,M852,N802,N803,N807,N808,N821,W293,W503,Y119,Y401,Y402", + "ExcludeMessages": "C101,E265,E266,E305,E402,M251,M301,M302,M303,M304,M305,M306,M307,M308,M311,M312,M313,M314,M315,M321,M701,M702,M811,M834,M852,N802,N803,N807,N808,N821,W293,W503,Y119,Y401,Y402", "FixCodes": "", "FixIssues": false, "FutureChecker": "", @@ -188,7 +189,6 @@ "Makefile": "OTHERS", "README": "OTHERS", "README.*": "OTHERS", - "Ui_*.py": "__IGNORE__", "makefile": "OTHERS" }, "FORMS": [ @@ -228,13 +228,14 @@ "OTHERTOOLSPARMS": { "Black": { "exclude": "/(\\.direnv|\\.eggs|\\.git|\\.hg|\\.ipynb_checkpoints|\\.mypy_cache|\\.nox|\\.pytest_cache|\\.ruff_cache|\\.tox|\\.svn|\\.venv|\\.vscode|__pypackages__|_build|buck-out|build|dist|venv)/", - "extend-exclude": "", + "extend-exclude": "Ui_.*\\.py", "force-exclude": "", "line-length": 88, "skip-magic-trailing-comma": false, "skip-string-normalization": false, "source": "project", "target-version": [ + "py313", "py312", "py311", "py310", @@ -278,6 +279,9 @@ "PyInstallerInterface/PyInstallerCleanupDialog.py", "PyInstallerInterface/PyInstallerConfigDialog.py", "PyInstallerInterface/PyInstallerExecDialog.py", + "PyInstallerInterface/Ui_PyInstallerCleanupDialog.py", + "PyInstallerInterface/Ui_PyInstallerConfigDialog.py", + "PyInstallerInterface/Ui_PyInstallerExecDialog.py", "PyInstallerInterface/__init__.py", "__init__.py" ], @@ -348,4 +352,4 @@ "VCSOTHERDATA": {}, "VERSION": "" } -} \ No newline at end of file +}
--- 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:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyInstallerInterface/Ui_PyInstallerCleanupDialog.py Tue Oct 29 17:39:59 2024 +0100 @@ -0,0 +1,50 @@ +# Form implementation generated from reading ui file 'PyInstallerInterface/PyInstallerCleanupDialog.ui' +# +# Created by: PyQt6 UI code generator 6.7.1 +# +# WARNING: Any manual changes made to this file will be lost when pyuic6 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt6 import QtCore, QtGui, QtWidgets + + +class Ui_PyInstallerCleanupDialog(object): + def setupUi(self, PyInstallerCleanupDialog): + PyInstallerCleanupDialog.setObjectName("PyInstallerCleanupDialog") + PyInstallerCleanupDialog.resize(400, 158) + PyInstallerCleanupDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(PyInstallerCleanupDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.label = QtWidgets.QLabel(parent=PyInstallerCleanupDialog) + self.label.setWordWrap(True) + self.label.setObjectName("label") + self.verticalLayout.addWidget(self.label) + self.buildButton = QtWidgets.QRadioButton(parent=PyInstallerCleanupDialog) + self.buildButton.setObjectName("buildButton") + self.verticalLayout.addWidget(self.buildButton) + self.distButton = QtWidgets.QRadioButton(parent=PyInstallerCleanupDialog) + self.distButton.setObjectName("distButton") + self.verticalLayout.addWidget(self.distButton) + self.bothButton = QtWidgets.QRadioButton(parent=PyInstallerCleanupDialog) + self.bothButton.setChecked(True) + self.bothButton.setObjectName("bothButton") + self.verticalLayout.addWidget(self.bothButton) + self.buttonBox = QtWidgets.QDialogButtonBox(parent=PyInstallerCleanupDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(PyInstallerCleanupDialog) + self.buttonBox.accepted.connect(PyInstallerCleanupDialog.accept) # type: ignore + self.buttonBox.rejected.connect(PyInstallerCleanupDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(PyInstallerCleanupDialog) + + def retranslateUi(self, PyInstallerCleanupDialog): + _translate = QtCore.QCoreApplication.translate + PyInstallerCleanupDialog.setWindowTitle(_translate("PyInstallerCleanupDialog", "Clean PyInstaller")) + self.label.setText(_translate("PyInstallerCleanupDialog", "Select the PyInstaller directories to be removed:")) + self.buildButton.setText(_translate("PyInstallerCleanupDialog", "Build Directory")) + self.distButton.setText(_translate("PyInstallerCleanupDialog", "Distribution Directory")) + self.bothButton.setText(_translate("PyInstallerCleanupDialog", "Both Directories"))
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyInstallerInterface/Ui_PyInstallerConfigDialog.py Tue Oct 29 17:39:59 2024 +0100 @@ -0,0 +1,203 @@ +# Form implementation generated from reading ui file 'PyInstallerInterface/PyInstallerConfigDialog.ui' +# +# Created by: PyQt6 UI code generator 6.7.1 +# +# WARNING: Any manual changes made to this file will be lost when pyuic6 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt6 import QtCore, QtGui, QtWidgets + + +class Ui_PyInstallerConfigDialog(object): + def setupUi(self, PyInstallerConfigDialog): + PyInstallerConfigDialog.setObjectName("PyInstallerConfigDialog") + PyInstallerConfigDialog.resize(600, 435) + PyInstallerConfigDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(PyInstallerConfigDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.tabWidget = QtWidgets.QTabWidget(parent=PyInstallerConfigDialog) + self.tabWidget.setObjectName("tabWidget") + self.generalTab = QtWidgets.QWidget() + self.generalTab.setObjectName("generalTab") + self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.generalTab) + self.verticalLayout_2.setObjectName("verticalLayout_2") + self.groupBox_2 = QtWidgets.QGroupBox(parent=self.generalTab) + self.groupBox_2.setObjectName("groupBox_2") + self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_2) + self.horizontalLayout.setObjectName("horizontalLayout") + self.executableCombo = QtWidgets.QComboBox(parent=self.groupBox_2) + self.executableCombo.setObjectName("executableCombo") + self.horizontalLayout.addWidget(self.executableCombo) + self.verticalLayout_2.addWidget(self.groupBox_2) + self.groupBox = QtWidgets.QGroupBox(parent=self.generalTab) + self.groupBox.setObjectName("groupBox") + self.gridLayout = QtWidgets.QGridLayout(self.groupBox) + self.gridLayout.setObjectName("gridLayout") + self.mainScriptButton = QtWidgets.QRadioButton(parent=self.groupBox) + self.mainScriptButton.setChecked(True) + self.mainScriptButton.setObjectName("mainScriptButton") + self.gridLayout.addWidget(self.mainScriptButton, 0, 0, 1, 1) + self.selectedScriptButton = QtWidgets.QRadioButton(parent=self.groupBox) + self.selectedScriptButton.setObjectName("selectedScriptButton") + self.gridLayout.addWidget(self.selectedScriptButton, 0, 1, 1, 1) + self.inputFilePicker = EricPathPicker(parent=self.groupBox) + self.inputFilePicker.setEnabled(False) + self.inputFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) + self.inputFilePicker.setObjectName("inputFilePicker") + self.gridLayout.addWidget(self.inputFilePicker, 1, 0, 1, 2) + self.verticalLayout_2.addWidget(self.groupBox) + self.groupBox_3 = QtWidgets.QGroupBox(parent=self.generalTab) + self.groupBox_3.setObjectName("groupBox_3") + self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.groupBox_3) + self.horizontalLayout_2.setObjectName("horizontalLayout_2") + self.oneDirButton = QtWidgets.QRadioButton(parent=self.groupBox_3) + self.oneDirButton.setChecked(True) + self.oneDirButton.setObjectName("oneDirButton") + self.horizontalLayout_2.addWidget(self.oneDirButton) + self.oneFileButton = QtWidgets.QRadioButton(parent=self.groupBox_3) + self.oneFileButton.setObjectName("oneFileButton") + self.horizontalLayout_2.addWidget(self.oneFileButton) + self.verticalLayout_2.addWidget(self.groupBox_3) + self.gridLayout_2 = QtWidgets.QGridLayout() + self.gridLayout_2.setObjectName("gridLayout_2") + self.label = QtWidgets.QLabel(parent=self.generalTab) + self.label.setObjectName("label") + self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) + self.nameEdit = QtWidgets.QLineEdit(parent=self.generalTab) + self.nameEdit.setClearButtonEnabled(True) + self.nameEdit.setObjectName("nameEdit") + self.gridLayout_2.addWidget(self.nameEdit, 0, 1, 1, 1) + self.label_2 = QtWidgets.QLabel(parent=self.generalTab) + self.label_2.setObjectName("label_2") + self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) + self.keyEdit = QtWidgets.QLineEdit(parent=self.generalTab) + self.keyEdit.setClearButtonEnabled(True) + self.keyEdit.setObjectName("keyEdit") + self.gridLayout_2.addWidget(self.keyEdit, 1, 1, 1, 1) + self.verticalLayout_2.addLayout(self.gridLayout_2) + self.cleanCheckBox = QtWidgets.QCheckBox(parent=self.generalTab) + self.cleanCheckBox.setObjectName("cleanCheckBox") + self.verticalLayout_2.addWidget(self.cleanCheckBox) + self.tabWidget.addTab(self.generalTab, "") + self.windowsMacTab = QtWidgets.QWidget() + self.windowsMacTab.setObjectName("windowsMacTab") + self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.windowsMacTab) + self.verticalLayout_3.setObjectName("verticalLayout_3") + self.groupBox_4 = QtWidgets.QGroupBox(parent=self.windowsMacTab) + self.groupBox_4.setObjectName("groupBox_4") + self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox_4) + self.horizontalLayout_3.setObjectName("horizontalLayout_3") + self.consoleButton = QtWidgets.QRadioButton(parent=self.groupBox_4) + self.consoleButton.setChecked(True) + self.consoleButton.setObjectName("consoleButton") + self.horizontalLayout_3.addWidget(self.consoleButton) + self.windowedButton = QtWidgets.QRadioButton(parent=self.groupBox_4) + self.windowedButton.setObjectName("windowedButton") + self.horizontalLayout_3.addWidget(self.windowedButton) + self.verticalLayout_3.addWidget(self.groupBox_4) + self.groupBox_5 = QtWidgets.QGroupBox(parent=self.windowsMacTab) + self.groupBox_5.setObjectName("groupBox_5") + self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_5) + self.gridLayout_3.setObjectName("gridLayout_3") + self.label_3 = QtWidgets.QLabel(parent=self.groupBox_5) + self.label_3.setObjectName("label_3") + self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 1) + self.iconFilePicker = EricPathPicker(parent=self.groupBox_5) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.iconFilePicker.sizePolicy().hasHeightForWidth()) + self.iconFilePicker.setSizePolicy(sizePolicy) + self.iconFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) + self.iconFilePicker.setToolTip("") + self.iconFilePicker.setObjectName("iconFilePicker") + self.gridLayout_3.addWidget(self.iconFilePicker, 0, 1, 1, 1) + self.label_4 = QtWidgets.QLabel(parent=self.groupBox_5) + self.label_4.setObjectName("label_4") + self.gridLayout_3.addWidget(self.label_4, 1, 0, 1, 1) + self.iconIdEdit = QtWidgets.QLineEdit(parent=self.groupBox_5) + self.iconIdEdit.setEnabled(False) + self.iconIdEdit.setClearButtonEnabled(True) + self.iconIdEdit.setObjectName("iconIdEdit") + self.gridLayout_3.addWidget(self.iconIdEdit, 1, 1, 1, 1) + self.verticalLayout_3.addWidget(self.groupBox_5) + spacerItem = QtWidgets.QSpacerItem(20, 156, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.verticalLayout_3.addItem(spacerItem) + self.tabWidget.addTab(self.windowsMacTab, "") + self.macTab = QtWidgets.QWidget() + self.macTab.setObjectName("macTab") + self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.macTab) + self.verticalLayout_4.setObjectName("verticalLayout_4") + self.horizontalLayout_4 = QtWidgets.QHBoxLayout() + self.horizontalLayout_4.setObjectName("horizontalLayout_4") + self.label_5 = QtWidgets.QLabel(parent=self.macTab) + self.label_5.setObjectName("label_5") + self.horizontalLayout_4.addWidget(self.label_5) + self.bundleIdentifierEdit = QtWidgets.QLineEdit(parent=self.macTab) + self.bundleIdentifierEdit.setClearButtonEnabled(True) + self.bundleIdentifierEdit.setObjectName("bundleIdentifierEdit") + self.horizontalLayout_4.addWidget(self.bundleIdentifierEdit) + self.verticalLayout_4.addLayout(self.horizontalLayout_4) + spacerItem1 = QtWidgets.QSpacerItem(20, 298, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.verticalLayout_4.addItem(spacerItem1) + self.tabWidget.addTab(self.macTab, "") + self.verticalLayout.addWidget(self.tabWidget) + self.buttonBox = QtWidgets.QDialogButtonBox(parent=PyInstallerConfigDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(PyInstallerConfigDialog) + self.tabWidget.setCurrentIndex(0) + self.buttonBox.accepted.connect(PyInstallerConfigDialog.accept) # type: ignore + self.buttonBox.rejected.connect(PyInstallerConfigDialog.reject) # type: ignore + self.selectedScriptButton.toggled['bool'].connect(self.inputFilePicker.setEnabled) # type: ignore + QtCore.QMetaObject.connectSlotsByName(PyInstallerConfigDialog) + PyInstallerConfigDialog.setTabOrder(self.tabWidget, self.executableCombo) + PyInstallerConfigDialog.setTabOrder(self.executableCombo, self.mainScriptButton) + PyInstallerConfigDialog.setTabOrder(self.mainScriptButton, self.selectedScriptButton) + PyInstallerConfigDialog.setTabOrder(self.selectedScriptButton, self.inputFilePicker) + PyInstallerConfigDialog.setTabOrder(self.inputFilePicker, self.oneDirButton) + PyInstallerConfigDialog.setTabOrder(self.oneDirButton, self.oneFileButton) + PyInstallerConfigDialog.setTabOrder(self.oneFileButton, self.nameEdit) + PyInstallerConfigDialog.setTabOrder(self.nameEdit, self.keyEdit) + PyInstallerConfigDialog.setTabOrder(self.keyEdit, self.cleanCheckBox) + PyInstallerConfigDialog.setTabOrder(self.cleanCheckBox, self.consoleButton) + PyInstallerConfigDialog.setTabOrder(self.consoleButton, self.windowedButton) + PyInstallerConfigDialog.setTabOrder(self.windowedButton, self.iconFilePicker) + PyInstallerConfigDialog.setTabOrder(self.iconFilePicker, self.iconIdEdit) + PyInstallerConfigDialog.setTabOrder(self.iconIdEdit, self.bundleIdentifierEdit) + + def retranslateUi(self, PyInstallerConfigDialog): + _translate = QtCore.QCoreApplication.translate + PyInstallerConfigDialog.setWindowTitle(_translate("PyInstallerConfigDialog", "PyInstaller Configuration")) + self.groupBox_2.setTitle(_translate("PyInstallerConfigDialog", "Executable")) + self.executableCombo.setToolTip(_translate("PyInstallerConfigDialog", "Select the executable to be run")) + self.groupBox.setTitle(_translate("PyInstallerConfigDialog", "Input File")) + self.mainScriptButton.setText(_translate("PyInstallerConfigDialog", "Project Main Script")) + self.selectedScriptButton.setText(_translate("PyInstallerConfigDialog", "Script or Spec File")) + self.groupBox_3.setTitle(_translate("PyInstallerConfigDialog", "Generate Option")) + self.oneDirButton.setText(_translate("PyInstallerConfigDialog", "One Directory")) + self.oneFileButton.setText(_translate("PyInstallerConfigDialog", "One File")) + self.label.setText(_translate("PyInstallerConfigDialog", "Name (optional):")) + self.nameEdit.setToolTip(_translate("PyInstallerConfigDialog", "Enter an optional name for the application")) + self.label_2.setText(_translate("PyInstallerConfigDialog", "Encryption Key (optional):")) + self.keyEdit.setToolTip(_translate("PyInstallerConfigDialog", "Enter an optional key used to encrypt Python bytecode")) + self.cleanCheckBox.setText(_translate("PyInstallerConfigDialog", "Clean Before Building")) + self.tabWidget.setTabText(self.tabWidget.indexOf(self.generalTab), _translate("PyInstallerConfigDialog", "&General")) + self.groupBox_4.setTitle(_translate("PyInstallerConfigDialog", "Application Mode")) + self.consoleButton.setToolTip(_translate("PyInstallerConfigDialog", "Select for a console application")) + self.consoleButton.setText(_translate("PyInstallerConfigDialog", "Console Application")) + self.windowedButton.setToolTip(_translate("PyInstallerConfigDialog", "Select for a windowed application (i.e. do not open a console window)")) + self.windowedButton.setText(_translate("PyInstallerConfigDialog", "Windowed Application")) + self.groupBox_5.setTitle(_translate("PyInstallerConfigDialog", "Icon")) + self.label_3.setText(_translate("PyInstallerConfigDialog", "Icon File:")) + self.label_4.setText(_translate("PyInstallerConfigDialog", "Icon ID:")) + self.iconIdEdit.setToolTip(_translate("PyInstallerConfigDialog", "Enter the icon ID to be extracted from the exe file")) + self.tabWidget.setTabText(self.tabWidget.indexOf(self.windowsMacTab), _translate("PyInstallerConfigDialog", "&Windows and macOS")) + self.label_5.setText(_translate("PyInstallerConfigDialog", "Bundle Identifier:")) + self.bundleIdentifierEdit.setToolTip(_translate("PyInstallerConfigDialog", "Enter the macOS app bundle identifier")) + self.tabWidget.setTabText(self.tabWidget.indexOf(self.macTab), _translate("PyInstallerConfigDialog", "&macOS Specific")) +from eric7.EricWidgets.EricPathPicker import EricPathPicker
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyInstallerInterface/Ui_PyInstallerExecDialog.py Tue Oct 29 17:39:59 2024 +0100 @@ -0,0 +1,53 @@ +# Form implementation generated from reading ui file 'PyInstallerInterface/PyInstallerExecDialog.ui' +# +# Created by: PyQt6 UI code generator 6.7.1 +# +# WARNING: Any manual changes made to this file will be lost when pyuic6 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt6 import QtCore, QtGui, QtWidgets + + +class Ui_PyInstallerExecDialog(object): + def setupUi(self, PyInstallerExecDialog): + PyInstallerExecDialog.setObjectName("PyInstallerExecDialog") + PyInstallerExecDialog.resize(750, 600) + PyInstallerExecDialog.setSizeGripEnabled(True) + self.verticalLayout_3 = QtWidgets.QVBoxLayout(PyInstallerExecDialog) + self.verticalLayout_3.setObjectName("verticalLayout_3") + self.messagesGroup = QtWidgets.QGroupBox(parent=PyInstallerExecDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(3) + sizePolicy.setHeightForWidth(self.messagesGroup.sizePolicy().hasHeightForWidth()) + self.messagesGroup.setSizePolicy(sizePolicy) + self.messagesGroup.setObjectName("messagesGroup") + self.verticalLayout = QtWidgets.QVBoxLayout(self.messagesGroup) + self.verticalLayout.setObjectName("verticalLayout") + self.contents = QtWidgets.QTextBrowser(parent=self.messagesGroup) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(3) + sizePolicy.setHeightForWidth(self.contents.sizePolicy().hasHeightForWidth()) + self.contents.setSizePolicy(sizePolicy) + self.contents.setObjectName("contents") + self.verticalLayout.addWidget(self.contents) + self.verticalLayout_3.addWidget(self.messagesGroup) + self.buttonBox = QtWidgets.QDialogButtonBox(parent=PyInstallerExecDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Close) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout_3.addWidget(self.buttonBox) + + self.retranslateUi(PyInstallerExecDialog) + self.buttonBox.accepted.connect(PyInstallerExecDialog.accept) # type: ignore + self.buttonBox.rejected.connect(PyInstallerExecDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(PyInstallerExecDialog) + + def retranslateUi(self, PyInstallerExecDialog): + _translate = QtCore.QCoreApplication.translate + PyInstallerExecDialog.setWindowTitle(_translate("PyInstallerExecDialog", "PyInstaller")) + self.messagesGroup.setTitle(_translate("PyInstallerExecDialog", "Messages")) + self.contents.setWhatsThis(_translate("PyInstallerExecDialog", "<b>Packager Execution</b>\n" +"<p>This shows the output of the packager command.</p>"))