[ltk-user] How to access initial toplevel window? (wish window??)

Peter Herth herth at peter-herth.de
Fri Feb 3 07:05:38 UTC 2006


Hi Eric,

On 2/2/06, Eric Hochmeister <erichochmeister at gmail.com> wrote:
> I'm trying to figure out how to access the initial top-level window...
> ie. the equivalent of opening wish and typing...
>
> . config -bg black
>
> I tried this in lisp,
>
> (with-ltk ()
>    (configure nil :background "darkgreen"))
>
> But it didn't seem to work.  It gets translated to...
>
> NIL configure -background {darkgreen}
>
> Hm... I tried other variations where 'nil' was and looked at the code
> for configure and widget-path but that didn't shed any light.  What am
> I missing?

To call all these functions on the inital window, I created the dummy
widget *tk*. Just pass it to configure et al.

Peter



More information about the ltk-user mailing list