Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Nim KDialog wrapper for super easy GUI.

License

NotificationsYou must be signed in to change notification settings

juancarlospaco/nim-kdialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kdialog.png

Use

import kdialogecho 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 aColor type fromcolors module.
  • The Date Picker returns aDateTime type fromtimes 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

About

Nim KDialog wrapper for super easy GUI.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

    Packages

    No packages published

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp