[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] tk and pstk eggs
From: |
Mario Domenech Goulart |
Subject: |
Re: [Chicken-users] tk and pstk eggs |
Date: |
Tue, 17 Sep 2013 20:57:52 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi Jeronimo,
On Tue, 17 Sep 2013 17:51:08 -0300 "Jeronimo Pellegrini" <address@hidden> wrote:
> I am trying to create a simple GUI for a Chicken program, but I don't think
> I understood how the tk and pstk eggs work -- I tried both.
>
> With tk, I have tried the tutorial in the documentation (the Hello World
> program):
>
> (require-extension tk)
> (start-tk)
>
> But them when I do
>
> (define hello-button (tk 'create-widget 'button))
>
> I get this error:
>
> Error: (car) bad argument type: Fontconfig
>
> Call history:
>
> <syntax> (define hello-button (tk (quote create-widget) (quote
> button)))
> <syntax> (##core#set! hello-button (tk (quote create-widget)
> (quote
> button)))
> <syntax> (tk (quote create-widget) (quote button))
> <syntax> (quote create-widget)
> <syntax> (##core#quote create-widget)
> <syntax> (quote button)
> <syntax> (##core#quote button)
> <eval> (tk (quote create-widget) (quote button)) <--
>
>
> With pstk, I could not even load the extension with require-extension:
>
> #;1> (require-extension pstk)
> ; loading /usr/local/lib/chicken/7/pstk.import.so ...
> ; loading /usr/local/lib/chicken/7/chicken.import.so ...
> ; loading /usr/local/lib/chicken/7/posix.import.so ...
> ; loading /usr/local/lib/chicken/7/data-structures.import.so ...
> ; loading /usr/local/lib/chicken/7/srfi-13.import.so ...
> ; loading /usr/local/lib/chicken/7/pstk.so ...
>
> Error: (string-intersperse) bad argument type - not a string: #<unspecified>
>
> Call history:
>
> <syntax> (require-extension pstk)
> <syntax> (##core#require-extension (pstk) #t)
> <syntax> (##core#begin (##core#begin (##core#begin
> (##sys#require
> (quote pstk))) (import pstk)) (##core#undef......
> <syntax> (##core#begin (##core#begin (##sys#require (quote
> pstk)))
> (import pstk))
> <syntax> (##core#begin (##sys#require (quote pstk)))
> <syntax> (##sys#require (quote pstk))
> <syntax> (quote pstk)
> <syntax> (##core#quote pstk)
> <syntax> (import pstk)
> <syntax> (import scheme chicken posix posix (only
> data-structures
> string-intersperse) (only srfi-13 string-co......
> <syntax> (##core#undefined)
> <syntax> (##core#undefined)
> <syntax> (##core#undefined)
> <eval> (##sys#require (quote pstk)) <--
>
> Are these bugs, or am I doing something wrong?
>
> I have chicken compiled from git (today), tk version 1.9 and pstk version
> 1.2.1.
I'd guess pstk is relaying on the "old" behavior of letrec. It'll
probably work with the latest stable release.
Don't know about the tk egg problem.
Best wishes.
Mario
--
http://parenteses.org/mario