[issue18246] tkinter.Text() add a newline to the content - bug?

Terry J. Reedy report at bugs.python.org
Sat Jun 22 00:19:21 CEST 2013


Terry J. Reedy added the comment:

You omitted the crucial control experiment.
>>> t2=tk.Text()
>>> t2.get(1.0, tk.END)
'\n'
Text widgets are initialized to end with \n. I suspect that this is an  intentional invariant of tk Text widgets, done by tk itself and not out tkinter wrapper, even if not well documented in the tkinter doc strings.

.insert works as documented.

So unless you can determine that this initialization is a recent and unintentional change, we would not change it. Hence closing at least for now.

(G.P., if you think this is wrong, re-open)

PS. python-list mirrrored on comp.lang.python and gmane.comp.python.general is a better place to ask 'Is this a bug?' and similar questions.

----------
nosy: +gpolo, terry.reedy
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list