MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / _browse_preamble

Method _browse_preamble

SLiCAP/schematic/model_dialog.py:243–252  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

241 # ── preamble helpers ──────────────────────────────────────────────────────
242
243 def _browse_preamble(self) -> None:
244 from pathlib import Path
245 path, _ = QFileDialog.getOpenFileName(
246 self, "Select Preamble File",
247 self._preamble_edit.text() or str(Path.home()),
248 "LaTeX Files (*.tex);;All Files (*)",
249 )
250 if path:
251 self._preamble_edit.setText(path)
252 self._mark_dirty()
253
254 def _clear_preamble(self) -> None:
255 self._preamble_edit.clear()

Callers

nothing calls this directly

Calls 2

_mark_dirtyMethod · 0.95
textMethod · 0.80

Tested by

no test coverage detected