Skip to content

ynbox_EN

windows99-hue edited this page Jul 14, 2026 · 2 revisions

ynbox — Yes/No Dialog

image
dokibox.ynbox(msg="Delete?", tooltip=None) → bool
Parameter Type Default Description
msg str "" Message text
tooltip str None Tooltip text shown on hover; disabled when None or empty
btn_texts tuple None Confirm button prompts. When None, dokibox auto-detects the system language. To customize, pass a tuple — the first element replaces "Yes", the second replaces "No". English fallback if language is unknown.
font_family str None Font family (default: "Microsoft YaHei"). Set to None or unset to use default.
font_size int None Font size in points. Set to None or unset to use default.
pinned bool True Keep window on top

Return value: clicking "Yes" returns True; clicking "No" or pressing Esc returns False.

if dokibox.ynbox("Delete?"):
    print("User clicked Yes")

Clone this wiki locally