Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ImFileDialog

ImFileDialog: file dialogs drawn with ImGui: open files, save a file, choose a folder.

FileDialog.instance().open(key, title, filter) opens a dialog; at each frame, is_done(key) tells when the user closed it, and get_result() gives the chosen path.

Upstream repository · The book’s page

Modules

In imgui_bundle (from imgui_bundle import im_file_dialog):

Demos using it

The demos of the catalog that use it (the pictures link to their code and to the playground).

Knobs, toggles, spinners and more

Knobs, toggles, spinners and more

Knobs, toggle switches, spinners, a command palette, a dock-like cool bar: widgets beyond Dear ImGui’s own.

More

They come from the libraries in the bundle: imgui-knobs, imgui_toggle, imspinner, imgui-command-palette and ImCoolBar. Also file dialogs: the native ones (portable-file-dialogs), and ImFileDialog, drawn with ImGui.

Uses: knobs, toggles, spinners, cool bar, command palette, file dialogs

Python: ▶︎ Run · Code
C++: ▶︎ Run · Code