Subject: Re: Ltk + Slime + Mac OSX 10.4 + (Clisp or SBCL or OpenMCL or CMUCL)
From: rpw3@rpw3.org (Rob Warnock)
Date: Sun, 06 May 2007 05:28:58 -0500
Newsgroups: comp.lang.lisp
Message-ID: <89OdnbxmwpN3MKDbnZ2dnUVZ_jOdnZ2d@speakeasy.net>
Texaner  <texaner82@web.de> wrote:
+---------------
| (defun hello-1 ()
|   (with-ltk ()
|     (let ((b (make-instance 'button :master nil :text "Press Me"
| 			      :command (lambda ()
| 				         (format t "Hello World!~&")))))
|       (pack b))))
| 
| Starting hello-1 then resulted in:
| There is no class named BUTTON.
|    [Condition of type SIMPLE-ERROR]
+---------------

Did you remember to (USE-PACKAGE :LTK)?

Or alternatively, try running the following instead,
which should also work for you:

    (defun hello-1 ()
      (ltk:with-ltk ()
	(let ((b (make-instance 'ltk:button :master nil :text "Press Me"
				:command (lambda ()
					   (format t "Hello World!~&")))))
	  (ltk:pack b))))


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607