|
23 | 23 |
|
24 | 24 | While choosing the latest version of Python is generally recommended, some third-party libraries and applications may not yet be fully compatible with the newest release. Therefore, it is recommended to try the second newest version, as it will still have most of the latest features and improvements while also having broader support among third-party packages."""
|
25 | 25 |
|
26 |
| -PACKAGES_INFO_TEXT = """Select the packages to install globally in the Python environment. By default, the "Default" and "PyAnsys" packages are selected, but the user can also choose to install "JupyterLab" or "Spyder (IDE)" by selecting the corresponding check boxes. This allows the user to customize their Python installation to suit their specific needs.""" |
27 |
| - |
28 | 26 |
|
29 | 27 | if getattr(sys, "frozen", False):
|
30 | 28 | # If the application is run as a bundle, the PyInstaller bootloader
|
@@ -52,7 +50,7 @@ class AnsysPythonInstaller(QtWidgets.QWidget):
|
52 | 50 | def __init__(self, show=True):
|
53 | 51 | super().__init__()
|
54 | 52 | self.setWindowTitle("Ansys Python Manager")
|
55 |
| - self.setGeometry(50, 50, 500, 900) # width should auto-update |
| 53 | + self.setGeometry(50, 50, 500, 700) # width should auto-update |
56 | 54 |
|
57 | 55 | self._pbar = None
|
58 | 56 | self._err_message_box = None
|
@@ -157,39 +155,6 @@ def __init__(self, show=True):
|
157 | 155 | python_version_box_layout.addWidget(python_version)
|
158 | 156 | form_layout.addWidget(python_version_box)
|
159 | 157 |
|
160 |
| - # Group 3: Packages |
161 |
| - packages_box = QtWidgets.QGroupBox("Packages") |
162 |
| - packages_box_layout = QtWidgets.QVBoxLayout() |
163 |
| - packages_box_layout.setContentsMargins(10, 20, 10, 20) |
164 |
| - packages_box.setLayout(packages_box_layout) |
165 |
| - |
166 |
| - # Packages |
167 |
| - packages = QtWidgets.QWidget() |
168 |
| - packages_layout = QtWidgets.QVBoxLayout() |
169 |
| - # packages_layout.setContentsMargins(0,0,0,0) |
170 |
| - packages.setLayout(packages_layout) |
171 |
| - |
172 |
| - packages_info_text = QtWidgets.QLabel(PACKAGES_INFO_TEXT) |
173 |
| - packages_info_text.setWordWrap(True) |
174 |
| - packages_layout.addWidget(packages_info_text) |
175 |
| - |
176 |
| - packages_default = QtWidgets.QCheckBox("Default") |
177 |
| - packages_default.setChecked(True) |
178 |
| - packages_layout.addWidget(packages_default) |
179 |
| - |
180 |
| - packages_pyansys = QtWidgets.QCheckBox("PyAnsys") |
181 |
| - packages_pyansys.setChecked(True) |
182 |
| - packages_layout.addWidget(packages_pyansys) |
183 |
| - |
184 |
| - packages_jupyterlab = QtWidgets.QCheckBox("Jupyterlab") |
185 |
| - packages_layout.addWidget(packages_jupyterlab) |
186 |
| - |
187 |
| - packages_spyder = QtWidgets.QCheckBox("Spyder (IDE)") |
188 |
| - packages_layout.addWidget(packages_spyder) |
189 |
| - |
190 |
| - packages_box_layout.addWidget(packages) |
191 |
| - form_layout.addWidget(packages_box) |
192 |
| - |
193 | 158 | # ensure content does not get squished
|
194 | 159 | form_layout.addStretch()
|
195 | 160 |
|
@@ -278,8 +243,8 @@ def _pbar_set_value(self, value):
|
278 | 243 |
|
279 | 244 | def error_dialog(self, txt, textinfo=None):
|
280 | 245 | """Create an error dialogue."""
|
281 |
| - self._err_message_box = QMessageBox(self) |
282 |
| - self._err_message_box.setIcon(QMessageBox.Critical) |
| 246 | + self._err_message_box = QtWidgets.QMessageBox(self) |
| 247 | + self._err_message_box.setIcon(QtWidgets.QMessageBox.Critical) |
283 | 248 | self._err_message_box.setText(txt)
|
284 | 249 |
|
285 | 250 | def _show_error(self, text):
|
|
0 commit comments