Skip to content

choicebox_EN

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

choicebox — Multiple Choice Dialog

image
dokibox.choicebox(msg="", choices=None, tooltip=None, force=None) → str | None
Parameter Type Default Description
msg str "" Prompt text; hidden when empty
choices list None List of choices
tooltip str None Tooltip text shown on hover; disabled when None or empty
force int None Force-select an index (0-based); cursor moves to the center of that choice
font_family str None Font family (default: "Microsoft YaHei"). Set to None to use default.
font_size int None Font size in points. Set to None to use default.
pinned bool True Keep window on top

Return value: the selected text content; Esc returns None.

char = dokibox.choicebox("Choose a character", ["Sayori", "Yuri", "Natsuki"], force=1)
print(char)  # "Yuri"

Clone this wiki locally