[issue39526] print(text1.get(1.2,1.5))

mlwtc report at bugs.python.org
Sun Feb 2 00:22:38 EST 2020


New submission from mlwtc <meistudent at 163.com>:

>>> from tkinter import *
>>> root = Tk()
>>> text1 = Text(root,width=30,height=3)
>>> text1.insert(INSERT,'abcdefghijklmnopqrstuvwxyz123456789123456789')
>>> print(text1.get(1.0,1.30))
abc
>>> print(text1.get(1.0,1.31))
abcdefghijklmnopqrstuvwxyz12345
>>> print(text1.get(1.0,1.20))
ab
>>> print(text1.get(1.0,1.21))
abcdefghijklmnopqrstu
>>> print(text1.get(1.0,1.10))
a
>>> print(text1.get(1.0,1.11))
abcdefghijk
>>> print(text1.get(1.0,1.9))
abcdefghi
  

   Is there a bug here?

----------
components: Build
messages: 361212
nosy: mlwtc
priority: normal
severity: normal
status: open
title: print(text1.get(1.2,1.5))
type: compile error
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39526>
_______________________________________


More information about the Python-bugs-list mailing list