[ltk-user] problem with place manager

Peter Herth herth at peter-herth.de
Tue Sep 9 07:26:15 UTC 2008


A bug, the code should be:

(defmethod place (widget x y &key width height)
  (format-wish "place ~A -x ~A -y ~A~@[ -width ~a~]~@[ -height ~a~]"
(widget-path widget)
               (tk-number x) (tk-number y)
               (and width (tk-number width))
               (and height (tk-number height)))
  widget)

(will be fixed in the next LTk release too)

Peter

On Tue, Sep 9, 2008 at 12:59 AM, Phil Armitage
<philip.armitage at gmail.com> wrote:
> Hi,
>
> I'm trying to use the place manager but am running into a problem.
>
> LTk implements the optional width and height parameters to the place
> manager through the use of keyword arguments and a conditional in the
> format-wish call. However, the two calls to tk-number are made without
> a check to see if the relevant parameter was supplied.
>
> Am I right in thinking this is a bug or am I just mis-using this method?
>
> Many thanks!
>
> --
> Phil Armitage
> http://phil.nullable.eu/
> _______________________________________________
> ltk-user site list
> ltk-user at common-lisp.net
> http://common-lisp.net/mailman/listinfo/ltk-user
>



More information about the ltk-user mailing list