/nim-native-dialogs

Native Operating System Dialogs implementation for Nim-lang via single API

Primary LanguageNimMIT LicenseMIT

nim-native-dialogs

nimble

Native Operating System Dialogs implementation for Nim-lang via single API. The library is GUI framework agnostic and supports the next platforms:

  • GNU/Linux + GTK+3
  • OSX + Cocoa
  • Windows + Win32 API

Currently the next dialogs are implemented in a single-file mode:

  • Open File Dialog
  • Save File Dialog
  • Folder Creation Dialog (GTK-only, stubs to save file dialog on other OSes)
  • Folder Selection Dialog (GTK-only, stubs to open file dialog on other OSes)

Installation

$ nimble install native_dialogs

Usage

import native_dialogs

echo callDialogFileOpen("Open File")
echo callDialogFileSave("Save File")
echo callDialogFolderCreate("Create New Folder")
echo callDialogFolderSelect("Open Folder")