Bezoar wrote:
> Suppose I have a text widget that I want to display some text on
> start up. I also want to save it in the options db. Supposedly,
> from what I read I can do this.
>
> option add .frame1.text.Startcontents "Please load a file"
> widgetDefault
>
The Startcontents you showed is a fully specified path, so it must
match exactly. The thing it must match is the appname + widgetname.
You get the appname with [tk appname]. When just experimenting in
wish, the appname is "wish". Then this works for me:
option add wish.frame1.text.Startcontents "Please load a file"
option get .frame1.text Startcontents Startcontents
You can also use wildcards in your specification:
option add *frame1.text.Startcontents "Please load a file"
You didn't show what you did for your font specification that
worked, but I suspect it contained a *.
Schelte.