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@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@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user