-
Anyway, summary: not a bug; this is intentional and expected behavior. The ttk::* widgets do behave differently than the core widgets in this regard, but that is intentional and by design.
2009-11-20 00:30:55 UTC in Tk Toolkit
-
Examples of counterintuitive behaviour:
# (1)
set X "blah"; entry .e -textvariable X
# ...
unset X
info exists X
# ==> returns 1!
# [2]
set X "B"
spinbox .sb -textvariable X -values {A B C}
set X
# ==> returns "A"!
# [3]
set X 2
spinbox .sb -textvariable X -from 1 -to 3
set X
# ==> Still 2!
unset X
set X
# ==> Now it's 1 again!
More examples available on demand.
2009-11-19 23:49:02 UTC in Tk Toolkit
-
This behaviour is intentional, sensible, and consistent.
The policy for linked variables (-textvariable, -variable, etc.) is:
(1) The widget state reflects the value of the linked variable; and,
(2) Widgets update linked variables in response to user input.
The ttk::* widgets use a stronger policy:
(2') widgets *only* update linked variables in response to user input.
The core...
2009-11-19 23:39:22 UTC in Tk Toolkit
-
jenglish committed patchset 1238 of module tile to the TkTable / Tile / Vu CVS repository, changing 5 files.
2009-11-12 18:18:00 UTC in TkTable / Tile / Vu
-
jenglish committed patchset 5492 of module tk to the Tk Toolkit CVS repository, changing 5 files.
2009-11-12 18:17:14 UTC in Tk Toolkit
-
jenglish committed patchset 11526 of module tcl to the Tcl CVS repository, changing 4 files.
2009-11-01 18:15:39 UTC in Tcl
-
jenglish committed patchset 1237 of module tile to the TkTable / Tile / Vu CVS repository, changing 10 files.
2009-11-01 18:12:52 UTC in TkTable / Tile / Vu
-
jenglish committed patchset 5477 of module tk to the Tk Toolkit CVS repository, changing 7 files.
2009-11-01 18:12:44 UTC in Tk Toolkit
-
jenglish committed patchset 1236 of module tile to the TkTable / Tile / Vu CVS repository, changing 1 files.
2009-11-01 17:30:04 UTC in TkTable / Tile / Vu
-
dburns reports on the Tcl'ers chat that this is causing problems for GUIB (a gui builder); if a user selects a value for one of the affected by-default-NULL options, it's imposible to reset it back to the default empty value. Reopening.
2009-10-27 17:31:47 UTC in Tk Toolkit