-
Notifications
You must be signed in to change notification settings - Fork 0
choicebox_EN
windows99-hue edited this page Jul 14, 2026
·
2 revisions
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"- Installation
- ynbox
- msgbox
- choicebox
- dialogbox
- diaenterbox
- enterbox
- textbox
- cmdbox
- notice
- garbled
- A save example
- Finally
- 安装
- ynbox
- msgbox
- choicebox
- dialogbox
- diaenterbox
- enterbox
- textbox
- cmdbox
- notice
- garbled
- 一个运用保存和加载的示例
- 在最后
Just Monika. 💚