On 8/20/06, Bill Ramsay ramsayw1@verizon.net wrote:
Felip Alàez Nadal wrote:
Hello: The code I send just creates a button with an image on It. Be sure to run It from within the directory It creates.
-- Felip Alàez Nadal ________________________________
_______________________________________________ ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user When I try to run it I get the following error:
debugger invoked on a SB-INT:STREAM-ENCODING-ERROR: encoding error on stream #<SB-SYS:FD-STREAM for "descriptor 6" {9E04D39}> (:EXTERNAL-FORMAT :ASCII): the character with code 242 cannot be encoded.
However, I pretty much do the same thing you are doing:
(let* ((img (xbut (make-instance 'button :master nil
:image (image-load img "x.ppm")))...
image-load returns nil, it is called only for side-effect (will change it so that it returns the image in the next ltk release)
Peter