3 ms·
A collection of Tk resources for Scheme: https://wiki.tcl-lang.org/page/Scheme https://wiki.tcl-lang.org/page/Scheme This is quite old, but I always remember
by so-cal-schemer 1mo ago
A collection of Tk resources for Scheme:
https://wiki.tcl-lang.org/page/Scheme https://wiki.tcl-lang.org/page/Scheme
This is quite old, but I always remember seeing it in the BSD packages collection:
https://conservatory.scheme.org/stk/ https://conservatory.scheme.org/stk/
Then there is Portable Scheme / Tk, a library for several Scheme implementations:
https://wiki.call-cc.org/eggref/5/pstk https://wiki.call-cc.org/eggref/5/pstk
PS/Tk provides an interface to the Tk toolkit, and is an effective tool for creating graphical interfaces.
(import pstk)
(tk-start)
(tk/pack
(tk 'create-widget 'button 'text: "Hello"
'command: (lambda () (display "Hello world") (newline)))
'padx: 20 'pady: 20)
(tk-event-loop)
And a recent walk-through:
Learn Scheme by Example: Tk GUI with Chicken Scheme
https://blog.matthewdmiller.net/learn-scheme-by-example-tk-gui-with-chicken-scheme https://blog.matthewdmiller.net/learn-scheme-by-example-tk-g...
- so-cal-schemer 1mo agohttps://cdn.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/STk/index.html https://cdn.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/STk/in... STk is a Scheme interpreter which can access to the Tk graphical package. Concretely it can be seen as the John Ousterhout's Tk package where the Tcl language has been replaced by Scheme. The Scheme interpreter is now R4RS conformant. This release provides an efficient object oriented system called STklos. STklos is a full OO system with multi-inheritance, generic functions, multi-methods and a true meta object protocol.