(self, event)
| 268 | pass |
| 269 | |
| 270 | def importPatterns(self, event): |
| 271 | text = fromClipboard() |
| 272 | if text: |
| 273 | sDP = DamagePattern.getInstance() |
| 274 | try: |
| 275 | sDP.importPatterns(text) |
| 276 | self.stNotice.SetLabel(_t("Patterns successfully imported from clipboard")) |
| 277 | except ImportError as e: |
| 278 | pyfalog.error(e) |
| 279 | self.stNotice.SetLabel(str(e)) |
| 280 | except (KeyboardInterrupt, SystemExit): |
| 281 | raise |
| 282 | except Exception as e: |
| 283 | msg = _t("Could not import from clipboard: unknown errors") |
| 284 | pyfalog.warning(msg) |
| 285 | pyfalog.error(e) |
| 286 | self.stNotice.SetLabel(msg) |
| 287 | finally: |
| 288 | self.entityEditor.refreshEntityList() |
| 289 | else: |
| 290 | self.stNotice.SetLabel(_t("Could not import from clipboard")) |
| 291 | |
| 292 | def exportPatterns(self, event): |
| 293 | sDP = DamagePattern.getInstance() |
nothing calls this directly
no test coverage detected