Re: checkbuttons in tcl 8.4.12 and 8.5a4 with -offvalue == ""?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: checkbuttons in tcl 8.4.12 and 8.5a4 with -offvalue == ""?

From: Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date: Thu Mar 02 2006 - 18:43:19 CET

MartinLemburg@UGS <martin.lemburg.ugs@gmx.net> wrote:
> For backward compability it would have been nice, to have no need to
> care for the tristate value, because if the offvalue and the
> tristatevalue are equal, the offvalue appearance would have had the
> preference.

Not only "nice" but even "necessary".
Good luck, tk is still in alpha, so changing
this should principially be possible.

Any application that used an offvalue "" before (which really
isn't all that exotic), would have to be changed (to add a
-tristatevalue "anything"), just to *not* change behaviour.
Of course the new option isn't accepted by older tcl/tk, so
one even needs a check on the tcl/tk version :-(((
If this isn't an "incompatible change", what is?

If on the other hand the tristatevalue was defined to
step behind the on- or off- values, then its ok,
because tristatevalue-nonaware scripts just happily
continue to work&look-right unchanged.

Btw., additionally, I wonder why the third state displays
as checked (though grayed) when indicatoron is true,
but more like unchecked (raised) when the indicatoron
is false.

I'd prefer a real third state, e.g. a flat relief, or
some semi-filled indicator (depending on -indicatoron).

No item should appear disabled when in fact it isn't!
Received on Sun Apr 30 02:20:56 2006