Convenience function to load a file using the window's file operations manager. Args: window: The main window object with file_operations_manager file_path: Path to the file to load Returns: bool: True if successful, False otherwise
(window, file_path)
| 280 | |
| 281 | |
| 282 | def load_file(window, file_path): |
| 283 | """Convenience function to load a file using the window's file operations manager. |
| 284 | |
| 285 | Args: |
| 286 | window: The main window object with file_operations_manager |
| 287 | file_path: Path to the file to load |
| 288 | |
| 289 | Returns: |
| 290 | bool: True if successful, False otherwise |
| 291 | """ |
| 292 | if hasattr(window, 'file_operations_manager'): |
| 293 | return window.file_operations_manager.load(file_path) |
| 294 | return False |