[ltk-user] problem with place manager
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~]"
(tk-number x) (tk-number y)
(and width (tk-number width))
(and height (tk-number height)))
(will be fixed in the next LTk release too)
On Tue, Sep 9, 2008 at 12:59 AM, Phil Armitage
<philip.armitage at gmail.com> wrote:
> 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
> ltk-user site list
> ltk-user at common-lisp.net
More information about the ltk-user