|
1 | 1 | """ |
2 | | -This module provides a GUI application for running OpenModelica simulations. |
| 2 | +A destop GUI app for running OpenModelica simulations. |
| 3 | +Allows users to select an executable file, |
| 4 | +set time constraints, and run simulations. |
| 5 | +Displays real-time output from the simulation process. |
| 6 | +Efficient error handling is provided for unexpected errors. |
| 7 | +Simple and easy-to-use interface for running simulations. |
3 | 8 | """ |
4 | 9 |
|
5 | 10 | import os |
@@ -95,7 +100,7 @@ def init_ui(self): |
95 | 100 |
|
96 | 101 | def _create_executable_input(self): |
97 | 102 | """ |
98 | | - Create the input layout for selecting an executable file. |
| 103 | + Input layout for selecting an executable file. |
99 | 104 | Default placeholder text is set to guide the user. |
100 | 105 | Also only .exe files are allowed to be selected. |
101 | 106 | """ |
@@ -252,13 +257,15 @@ def run_app(self): |
252 | 257 | else "Unknown error occurred." |
253 | 258 | ) # noqa |
254 | 259 | self.output_display.append( |
255 | | - f"\nSimulation failed:\n{error_output}" |
256 | | - ) # noqa |
| 260 | + f"\nSimulation failed:\n{error_output}", |
| 261 | + ) |
257 | 262 |
|
258 | | - except Exception as e: # noqa |
| 263 | + except Exception as e: |
259 | 264 | QMessageBox.critical( |
260 | | - self, "Execution Error", f"Unexpected error: {e}" |
261 | | - ) # noqa |
| 265 | + self, |
| 266 | + "Execution Error", |
| 267 | + f"Unexpected error: {e}", |
| 268 | + ) |
262 | 269 |
|
263 | 270 |
|
264 | 271 | # Main execution of the program |
|
0 commit comments