|
From: Eric B. <eri...@fr...> - 2005-02-25 17:47:52
|
Joe English wrote:
> Questions: Are the 'set' and 'get' methods really needed?
> They're equivalent to [$w configure -value] and [$w cget -value],
> respectively; or you can just access the linked -variable.
Isn't there a general rule in tk that options are never changed
internally, but only via configure subcommand ?
This is at least what I have observed, with for example [entry].
> And if so, would a 'step' method be useful for indeterminate
> progress bars, where [$w step] is equivalent to:
>
> $w configure -value [expr {[$w cget -value] + [$w cget -stepsize]}]
[$w step] is cleaner.
--
-eric
|