[issue1135] xview/yview of Tix.Grid is broken

Guilherme Polo report at bugs.python.org
Fri Jan 2 21:57:15 CET 2009


Guilherme Polo <ggpolo at gmail.com> added the comment:

I would actually prefer to move xview and yview method to classes like
it was done in xview_yview.patch (I've done this on a personal branch
some time ago too, but named them as XScroll, YScroll), we can see they
are used in several places in Tkinter, Tix and other extensions, and we
are just duplicating code for them all the time.

Also, what I would prefer to see in place of this:

if not args:
    return self._getdoubles(self.tk.call(self._w, 'xview'))
self.tk.call((self._w, 'xview') + args)

would be this:

res = self.tk.call(self._w, 'xview', *args)
if args:
    return self._getdoubles(res)

----------
nosy: +gpolo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1135>
_______________________________________


More information about the Python-bugs-list mailing list