New submission from Guilherme Polo <ggp...@gmail.com>: Hi,
I've noticed some minor problems in Tkinter.Scrollbar that would be good to be addressed. The activate method never returns a value and it also doesn't accept to be called without an element -- which is accepted by tcl. When an element is not especified, the current active element should be returned. It's signature is also a bit strange, I don't see why it has a parameter named "index" while it never takes an index but an element. The second problem is about the set method. It accepts any amount of arguments, but it only needs to accept two. Passing a tuple in the form of (number, number) to it isn't accepted, so I don't see much reason to continue with an *args there. ---------- components: Tkinter files: Scrollbar_fixes.diff keywords: patch messages: 88670 nosy: gpolo severity: normal status: open title: Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args versions: Python 2.7, Python 3.1 Added file: http://bugs.python.org/file14147/Scrollbar_fixes.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6167> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com