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

Function make_ghost

SLiCAP/schematic/component_item.py:458–463  ·  view source on GitHub ↗

Semi-transparent drag preview used during placement mode.

(svg_bytes: bytes)

Source from the content-addressed store, hash-verified

456
457
458def make_ghost(svg_bytes: bytes) -> _ViewBoxSvgItem:
459 """Semi-transparent drag preview used during placement mode."""
460 item = _ViewBoxSvgItem(svg_bytes)
461 item.setOpacity(0.4)
462 item.setAcceptedMouseButtons(Qt.NoButton)
463 return item
464
465
466class ComponentItem(_ViewBoxSvgItem):

Callers 2

_start_paste_ghostMethod · 0.85
start_placementMethod · 0.85

Calls 1

_ViewBoxSvgItemClass · 0.85

Tested by

no test coverage detected