option database

option database

Post by Matthias M » Sat, 14 May 2005 21:19:23


does anybody know why the following isn't working?

mei@linux:~> wish
% frame .f -class Test
% option add *Test.background red widgetDefault
% option get .f background {}

If i type:

% option add *Test.background red userDefault
% option get .f background {}

If I dont use a standard option it workes fine!:

% option add *Test.myopt red widgetDefault
% option get .f myopt {}

(linux/ tcl/tk 8.4.6 )


Matthias Meier
Fornoff und Heintzenberg GmbH
Consulting, DV-Systeme, Dienstleistungen
Hauptstr. 4, D-79224 Umkirch
Tel +49 7665 937-0, Fax -150

option database

Post by bs » Sun, 15 May 2005 06:05:53

I believe that only widgets that are created *after* the option command
will pick up the options. So, do the "option add..." *before* creating
the widgets...