From: LuisGLopez
Subject: Problem with ltk
Date: 
Message-ID: <1133029356.776628.163130@g43g2000cwa.googlegroups.com>
Hi!

I am using CMUCL 19c on ubuntu 5.04 with slime.

I wanted to try the wonderful ltk (http://www.peter-herth.de/ltk/), but
I'm having some problems. According to the manual (incredibly
detailed!) I did:

(compile-file "ltk")
and I think it worked (lots and lots of lines scrolling; coudn't check
everyone)

then
(load "ltk")
worked fine.

(ltk::ltk-eyes) worked perfect, but
(ltktest) didn't; I got this:

Error in KERNEL:%COERCE-TO-FUNCTION:  the function LTKTEST is
undefined.
   [Condition of type UNDEFINED-FUNCTION]

Then I tried this:

(defun hola ()
  (with-ltk()
    (let ((b (make-instance 'button
			    :master nil
			    :text "Pulsame"
			    :command (lambda ()
				       (format t "hola~&")))))
      (pack b))))

and got this when typed (hola)<enter>:

Error in KERNEL:%COERCE-TO-FUNCTION:  the function WITH-LTK is
undefined.
   [Condition of type UNDEFINED-FUNCTION]

Don't know what I'm doing wrong... :-/

Thank you very much,

Luis. :-)

From: Wade Humeniuk
Subject: Re: Problem with ltk
Date: 
Message-ID: <%b2if.132463$S4.8511@edtnps84>
LuisGLopez wrote:
> Hi!
> 
> I am using CMUCL 19c on ubuntu 5.04 with slime.
> 
> I wanted to try the wonderful ltk (http://www.peter-herth.de/ltk/), but
> I'm having some problems. According to the manual (incredibly
> detailed!) I did:
> 
> (compile-file "ltk")
> and I think it worked (lots and lots of lines scrolling; coudn't check
> everyone)
> 
> then
> (load "ltk")
> worked fine.
> 
> (ltk::ltk-eyes) worked perfect, but
> (ltktest) didn't; I got this:


Looks like a package issue, since you are probably
doing this from the cl-user package do either

(ltk:ltktest) or (ltk::ltktest)

or

(use-package :ltk)

then (ltktest)

before doing anything alse

> 
> Error in KERNEL:%COERCE-TO-FUNCTION:  the function LTKTEST is
> undefined.
>    [Condition of type UNDEFINED-FUNCTION]
> 
> Then I tried this:
> 
> (defun hola ()
>   (with-ltk()
>     (let ((b (make-instance 'button
> 			    :master nil
> 			    :text "Pulsame"
> 			    :command (lambda ()
> 				       (format t "hola~&")))))
>       (pack b))))

same here, probably should be

(ltk:with-ltk ....

and

(make-instance 'ltk:button ...

Wade

> 
> and got this when typed (hola)<enter>:
> 
> Error in KERNEL:%COERCE-TO-FUNCTION:  the function WITH-LTK is
> undefined.
>    [Condition of type UNDEFINED-FUNCTION]
> 
> Don't know what I'm doing wrong... :-/
> 
> Thank you very much,
> 
> Luis. :-)
> 
From: Peter Herth
Subject: Re: Problem with ltk
Date: 
Message-ID: <dmaci1$j8l$02$1@news.t-online.com>
(use-package :ltk)  should do the magic trick :)

Have fun!

Peter

-- 
Ltk, the easy lisp gui http://www.peter-herth.de/ltk/
From: LuisGLopez
Subject: Re: Problem with ltk
Date: 
Message-ID: <1133053535.905824.81900@g49g2000cwa.googlegroups.com>
Peter Herth ha escrito:

> (use-package :ltk)  should do the magic trick :)

Thank you both!!! (Specially Peter for his great package!) It works!!!

One more question: Is there any way that slime loads ltk automatically
everytime?
From: Peter Herth
Subject: Re: Problem with ltk
Date: 
Message-ID: <dmc37b$bt0$01$1@news.t-online.com>
LuisGLopez wrote:
> Peter Herth ha escrito:
> 
> 
>>(use-package :ltk)  should do the magic trick :)
> 
> 
> Thank you both!!! (Specially Peter for his great package!) It works!!!
> 
> One more question: Is there any way that slime loads ltk automatically
> everytime?
> 

You could either put the load and use-package statements in your Lisp
init file or (outside of slime) start CMUCL, load Ltk and save a core
in this state and use this as your standard Lisp core - with Ltk
preloaded :)

Peter

-- 
Ltk, the easy lisp gui http://www.peter-herth.de/ltk/
From: LuisGLopez
Subject: Re: Problem with ltk
Date: 
Message-ID: <1133091752.845528.206170@g43g2000cwa.googlegroups.com>
Thanks, Peter! I'm going to port some of my grahics apps to ltk
(hipercube, koch figures, etc.) :-)