MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / apply_parser

Function apply_parser

SLiCAP/schematic/config.py:182–188  ·  view source on GitHub ↗

Replace the in-memory style with `cfg` and propagate live (used by the Preferences dialog, which edits the current schematic's style).

(cfg)

Source from the content-addressed store, hash-verified

180
181
182def apply_parser(cfg) -> None:
183 """Replace the in-memory style with `cfg` and propagate live (used by the
184 Preferences dialog, which edits the current schematic's style)."""
185 _cfg.clear()
186 for section in cfg.sections():
187 _cfg[section] = {k: v for k, v in cfg[section].items()}
188 _apply(rescale_items=True)
189
190
191def snapshot() -> "configparser.ConfigParser":

Callers

nothing calls this directly

Calls 2

_applyFunction · 0.85
clearMethod · 0.80

Tested by

no test coverage detected