TinyFileDialogs

This library provides OCaml bindings to the TinyFileDialogs C library.

API documentation

Installation

opam install tinyfiledialogs

Usage

Open Tinyfiledialogs and call functions like:

You can also configure global variables:

Example

open Tinyfiledialogs

let () =
  match input_box ~title:"Name" ~message:"Enter your name:" ~default_input:"" with
  | None -> exit 0
  | Some name -> print_endline ("Hello " ^ name ^ "!")