bug in Tkinter
Roman Suzi
rnd at onego.ru
Thu Sep 13 13:16:23 EDT 2001
This is what I am getting in Python 2.1:
>>> from Tkinter import *
>>> t=Text(Tk())
>>> t.insert(END, '12345\n67890\n\n')
>>> t.get("1.0", "100.end")
'12345\n67890\n\n'
>>> t.search("3", "2.0", forwards=1)
'1.2'
>>> t.get("2.0", "100.end")
'67890\n\n'
>>>
This does mean that search is always done from the beginning,
not from "2.0" index.
Also strange enough that dump method doesn't work:
>>> t.dump
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: Text instance has no attribute 'dump'
I have:
tcl-8.0.5
Sincerely yours, Roman Suzi
--
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Thursday, September 13, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Many people own cats - and go on to lead normal lives." _/
More information about the Python-list
mailing list