Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juancarlospaco/nim-kdialog
Nim KDialog wrapper for super easy GUI.
https://github.com/juancarlospaco/nim-kdialog
gui kde kdialog nim nim-lang qt5
Last synced: 3 months ago
JSON representation
Nim KDialog wrapper for super easy GUI.
- Host: GitHub
- URL: https://github.com/juancarlospaco/nim-kdialog
- Owner: juancarlospaco
- License: lgpl-3.0
- Created: 2018-06-26T18:22:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T18:07:07.000Z (over 5 years ago)
- Last Synced: 2024-08-04T01:15:22.602Z (6 months ago)
- Topics: gui, kde, kdialog, nim, nim-lang, qt5
- Language: Nim
- Size: 61.5 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Nim-KDialog
===========.. image:: kdialog.png
Use
---.. code:: nim
import kdialog
echo yesno "Love Nim?"
echo yesnocancel "Is Nim Awesome?"
echo warningyesno "Update Nimble index!"
echo warningcontinuecancel "Nimble is Up-to-date!"
echo warningyesnocancel "Contribute to Nim today?"
echo sorry "We got no Interfaces..."
echo error "Your Nim does not compile!"
echo newpassword "Enter some Password here"
echo getcolor "Which is the best color?"
echo calendar "When is the next eclipse?"Return Types
------------All Dialogs are pre-parsed into proper Nim Types!.
- The Color Picker returns a ``Color`` type from ``colors`` module.
- The Date Picker returns a ``DateTime`` type from ``times`` module.
- Boolean, integer or string are returned when fits.Why not a proper GUI Toolkit?
------------------------------ This is oriented to newbiews, teaching programming classes, hackattons, etc.
- KISS principle, easy to use, simple API, Nim need GUI, this is **~32Kb compiled**.
- KDEs Documentation works for this module since its 1:1 clone. Has builtin Examples.
- The idea is to help people move from procedural Bash to Nim with GUI.
- I tried using `dialog`, `whiptail`, they both fail because kinda buggy.
- I tried using `xdialog`, `gdialog` they both fail, mostly spamm polluting output with useless GTK warnings.Requisites
----------- KDialog and Qt5.
- Nim and Nimble.Install
-------- ``nimble install kdialog``