[ltk-user] Setting wm-title

Jud Leonard leonard at tlw.com
Thu Dec 18 22:12:05 UTC 2008


I've been having trouble setting the window title using wm-title,  
apparently because ltk was never creating "." as the widget path.

I patched it as follows:

(defmethod wm-title ((w widget) title)
   (format-wish "wm title ~a {~a}" (if (master w) (widget-path w) ".")  
title)
   w)

which seems to work.  It wasn't clear to me whether this is the right  
fix if one has multiple top level windows, and I didn't know whether a  
similar fix should be applied to other wm- functions.  Can you advise?
	Jud





More information about the ltk-user mailing list