Terry J. Reedy added the comment:

1. In activate, change parameter 'index' to 'element'.  I agree with Jim about 
rejecting this. A (specific). 'index' is routinely used to point to an item in 
a sequence; "arrow1", "slider", and "arrow2" are visually sequenced. The doc 
string is clear on the possible indexes Text also uses words for indexes. B 
(general). we don't break code by renaming arguments; I am pretty sure that any 
exception one might raise does not apply to this issue.

2. Give index a default of None and return the result of calling tk with None, 
instead of tossing it. I believe this enhancement would make activate more 
consistent with other methods. If so, do it -- with an added test.

3. Give .set() specific parameters. I think the current docstring is a bit 
confusing and should be revised. Am I correct in thinking that on a vertical 
slider, the upper end get the lower value, whereas the lower end gets the 
higher value? And that one should call bar.set(.3, .6) rather than bar.set(.6, 
.3)? If so, calling the parameters 'lowval' and 'hival' might be clearer.

Does msg201484 mean that tk requires exactly 2 args? If so, some change seems 
ok. Deleting 'args' cannot in itself break code as 'args' cannot be used as a 
keyword. I agree with not adding defaults,

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6167>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to