(self)
| 268 | # ── actions ─────────────────────────────────────────────────────────────── |
| 269 | |
| 270 | def _on_place_border(self): |
| 271 | from .border_dialog import BorderDialog |
| 272 | from .border_item import BorderItem |
| 273 | w, h, show = 400, 300, True |
| 274 | for item in self._scene.items(): |
| 275 | if isinstance(item, BorderItem): |
| 276 | w = int(item.rect().width()) |
| 277 | h = int(item.rect().height()) |
| 278 | show = item.show_in_export |
| 279 | break |
| 280 | dlg = BorderDialog(width=w, height=h, show_in_export=show, parent=self) |
| 281 | if dlg.exec(): |
| 282 | self._scene.start_border_placement( |
| 283 | dlg.border_width(), dlg.border_height(), dlg.show_in_export() |
| 284 | ) |
| 285 | |
| 286 | def _on_place_library(self): |
| 287 | from PySide6.QtWidgets import QFileDialog |
nothing calls this directly
no test coverage detected