wxyz.svg#

Widget for working with SVG groups as a widget layout

class wxyz.svg.SVGBox(**kwargs: Any)[source]#

Bases: SVGBase, Box

An SVG Box that shows its children inside the bounding box of named areas in an SVG file.

area_attr#

namespaced XML attribute on SVG g with unique values

area_widgets#

a dictionary of child indices keyed by unique values of area_attr in SVG

box_style#

Use a predefined styling for the box.

children#

List of widget children

show_svg#

only use SVG for sizing, do not show

svg#

an SVG string

svg_file#

a path to local .svg file

visible_areas#

a list of area_attr of SVG g to show. Accepts [None] for all

zoom_lock#

Make children non-interactive for better pan/zoom