Try to import a file with a file chooser and return that file chooser object
(self, filename, open_action=False)
| 331 | return self.__class__.pdfarranger.process |
| 332 | |
| 333 | def _import_file(self, filename, open_action=False): |
| 334 | """Try to import a file with a file chooser and return that file chooser object""" |
| 335 | self._mainmenu("Open" if open_action else "Import") |
| 336 | filechooser = self._app().child(roleName='file chooser') |
| 337 | treeview = filechooser.child(roleName="table", name="Files") |
| 338 | treeview.keyCombo("<ctrl>L") |
| 339 | treeview.typeText(os.path.abspath(filename)) |
| 340 | ob = filechooser.button("Open") |
| 341 | self._wait_cond(lambda: ob.sensitive) |
| 342 | ob.click() |
| 343 | return filechooser |
| 344 | |
| 345 | def _save_as_chooser(self, filebasename, expected=None): |
| 346 | """ |
no test coverage detected