Replace the in-memory style with `cfg` and propagate live (used by the Preferences dialog, which edits the current schematic's style).
(cfg)
| 180 | |
| 181 | |
| 182 | def 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 | |
| 191 | def snapshot() -> "configparser.ConfigParser": |