(self, fname="screenshot.png")
| 407 | x.set_checked(checked) |
| 408 | |
| 409 | def save_screenshot(self, fname="screenshot.png"): |
| 410 | path = os.path.join(ROOT_DIR, fname) |
| 411 | with open(path, "wb") as f: |
| 412 | f.write(self.window.grab_window_as_png()) |
| 413 | |
| 414 | def _flatten(self, result): |
| 415 | if self._multi_result or len(result) != 1: |
no test coverage detected