1
0
Fork
You've already forked nodgui
0
forked from cage/nodgui
Common Lisp bindings for the Tk GUI toolkit
  • Common Lisp 95.5%
  • Tcl 4.5%
Find a file
2023年12月25日 18:56:56 +01:00
src - set maximum opacity for pixpam that laks alpha channel; 2023年12月25日 18:56:56 +01:00
test - moved tests in another system. 2023年12月06日 19:59:19 +01:00
themes - added theme 'forest light'. 2023年11月19日 13:34:14 +01:00
.gitignore - added file '.gitignore'. 2023年08月20日 14:05:37 +02:00
Changelog - updated changelog. 2023年11月25日 15:56:04 +01:00
NEWS.org - updated news file. 2023年11月25日 13:57:41 +01:00
nodgui.asd - set maximum opacity for pixpam that laks alpha channel; 2023年12月25日 18:56:56 +01:00
README.org - set maximum opacity for pixpam that laks alpha channel; 2023年12月25日 18:56:56 +01:00
TODO.org - updated changelog and TODO. 2018年12月12日 15:40:30 +01:00

NODGUI

NODGUI

"No Drama GUI"

Common Lisp bindings for the Tk GUI toolkit.

important note:

Version 0.4.0 broke the user API, see here for more information about how your code is affected and how to fix it.

Features

  • custom themes
  • more widgets:

    • history-entry
    • autocomplete
    • expanded "text" widget
    • date picker
    • treelist
    • tooltip
    • searchable listbox
    • password entry
    • ...
  • tklib-derived widgets:

    • calendar
    • notify-window (a bit buggy, unfortunately)
    • plots and charts: dot-plot, bar-chart...
  • asynchronous main event loop
  • and more

Themes

nodgui supports loading custom ttk themes and ships the "yaru" theme from the ttkthemes collection.

To use a built-in theme other than the "default" one, do:

 (with-nodgui (:theme "yaru")
 (code here))

or use (setf *default-theme* "yaru").

You can see how they look with the demos:

CL-USER> (nodgui.demo:demo :theme "yaru")

You can load any .tcl file describing a theme:

(nodgui:eval-tcl-file "path/to/another/theme.tcl")
(nodgui:use-theme "theme")

See also *themes-directory*.

This currently doesn't work with a few themes using SVG images, but it might be fixed with the release of an upcoming Tcl/Tk version.

Dependency

Programs

Lisp libraries

  • alexandria;
  • bordeaux-threads;
  • cl-colors2;
  • cl-ppcre-unicode;
  • cl-unicode;
  • clunit2;
  • esrap;
  • flexi-streams;
  • jpeg-turbo;
  • named-readtables;
  • parse-number;
  • pngload;
  • zpng.

All of the above libraries are available on quicklisp.

C Libraries

Installing

  1. install the tk interpreter (example on a Debian system follows)
# apt-get install tk
  1. optionally install tklib
# apt-get install tklib
  1. optionally install tkimg
# apt-get install libtk-img
  1. open a REPL and type
(ql:quickload "nodgui")
  1. try it!
(nodgui.demo:demo)

Documentation

License

This software is Copyright (c) 2003-2010 Peter Herth <herth@peter-herth.de> Portions Copyright (c) 2005-2010 Thomas F. Burdick Portions Copyright (c) 2006-2010 Cadence Design Systems Portions Copyright (c) 2010 Daniel Herring Portions Copyright © cage

The authors grant you the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (http://opensource.franz.com/preamble.html), known as the LLGPL.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Themes

The themes definitions found in the themes/ subdirectory are distributed with many different license, please carefully check the file LICENSE.org in each theme's subdirectory (e.g /botato/nodgui/src/branch/master/themes/yaru/LICENSE.org) for more information.

Acknowledgment

My (cage) deep thanks to Tim Holliefield <tholliefield [at] online.de>, for all the suggestions and help about implementing the widgets styles management.