[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] tk and pstk eggs
From: |
Jeronimo Pellegrini |
Subject: |
[Chicken-users] tk and pstk eggs |
Date: |
Tue, 17 Sep 2013 17:51:08 -0300 |
User-agent: |
SquirrelMail/1.4.23 [SVN] |
Hello,
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.
Thanks a lot!
J.
- [Chicken-users] tk and pstk eggs,
Jeronimo Pellegrini <=