[New-bugs-announce] [issue6157] Tkinter.Text: changes for bbox, debug, and edit methods.

Guilherme Polo report at bugs.python.org
Sun May 31 22:06:13 CEST 2009

New submission from Guilherme Polo <ggpolo at gmail.com>:


While testing Tkinter.Text I've found some problems and it would be good
to fix them in trunk.

The methods edit_redo, edit_reset, edit_separator and edit_undo doesn't
return anything, so I would suggest to remove the return statements there.
The debug method doesn't return a boolean when we set a value for the
debug option, so the getboolean function fails:

>>> import Tkinter
>>> text = Tkinter.Text()
>>> text.debug()
>>> text.debug(1)
_tkinter.TclError: expected boolean value but got ""

I'm also suggesting a change in the bbox signature. Right now it
supports receiving multiple args, but the bbox command in Tcl expects a
single item as the index. I believe it makes more sense to indicate that
it accepts a single argument. An index like '1.0 +1c' needs to either be
passed as '1.0 +1c' or ('1.0', '+1c') (a tuple holding the two parts),
not as '1.0', '+1c' (two arguments).

components: Tkinter
files: tkinter_text_changes.diff
keywords: patch
messages: 88607
nosy: gpolo
severity: normal
status: open
title: Tkinter.Text: changes for bbox, debug, and edit methods.
versions: Python 2.7, Python 3.1
Added file: http://bugs.python.org/file14129/tkinter_text_changes.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list