[ltk-user] How to access initial toplevel window? (wish window??)
Hi, 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? Thanks, Eric
Hi Eric, On 2/2/06, Eric Hochmeister <erichochmeister@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
On 2/2/06, Eric Hochmeister <erichochmeister@gmail.com> wrote:
Hi,
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"))
The widget you're looking for is in *tk*, so you can accomplish that with (configure *tk* :background "darkgreen")
participants (3)
-
Eric Hochmeister
-
Peter Herth
-
Thomas F. Burdick