Skip to content

frame

build_frame_preview_widget()

All frame variants.

Source code in ui_preview/frame.py
12
13
14
15
16
17
18
19
20
21
22
23
24
def build_frame_preview_widget():
    """All frame variants."""
    w = QtWidgets.QWidget()
    w.setMinimumWidth(300)
    lyt = AYVBoxLayout(w, margin=8, spacing=8)

    for variant in AYFrame.Variants:
        frame = AYFrame(variant=variant)
        frame.setFixedHeight(40)
        frame.setToolTip(variant.value)
        lyt.addWidget(frame)

    return w