No description
Find a file
2025-10-29 21:24:15 +01:00
.github/workflows v1.0.0: Made bindings high-level and moved docs to https://patitotective.github.io/tinydialogs. 2022-08-19 16:25:31 -05:00
src v1.1.2: sending nil instead of cstring "" when a string is empty to avoid possible lock ups (freezing) 2025-10-29 21:24:15 +01:00
.gitignore v1.0.0: Made bindings high-level and moved docs to https://patitotective.github.io/tinydialogs. 2022-08-19 16:25:31 -05:00
DEV.md docs 2025-10-10 14:36:51 +02:00
LICENSE updated license 2022-05-26 22:17:51 -05:00
README.md formatting 2025-10-10 15:55:04 +02:00
tinydialogs.nimble v1.1.2: sending nil instead of cstring "" when a string is empty to avoid possible lock ups (freezing) 2025-10-29 21:24:15 +01:00

tinydialogs

High-level Tiny file dialogs v3.8.8 Nim bindings.

Example

import std/os
import tinydialogs

beep()
notifyPopup("Message", "You just received a message from Beef", Info)
echo messageBox(
  "Hey", "Do you want to receive more notifications?", YesNo, Question, Yes
)
echo inputBox("Name", "Please enter your password :]", "")
echo saveFileDialog(
  "Save the file", getCurrentDir() / "\0", ["*.txt", "*.text"], "Text file"
) # "\0" for an emtpy file
echo openFileDialog(
  "Open the file", getCurrentDir() / "\0", ["*.txt", "*.text"], "Text file"
)
echo openMultipleFilesDialog(
  "Open the files", getCurrentDir() / "\0", ["*.txt", "*.text"], "Text files"
)
echo selectFolderDialog("Open the directory of the file", getCurrentDir())
echo colorChooser("Choose a color")
echo colorChooser("Choose a color", "#000000") # Hex
echo colorChooser("Choose a color", [0u8, 0u8, 0u8]) # RGB

Read more at the docs.

About

Contact me: