[Patches] [ python-Patches-546244 ] implementation of Text.dump method
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 22 Apr 2002 11:07:52 -0700
Patches item #546244, was opened at 2002-04-19 14:10
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=546244&group_id=5470
Category: Tkinter
Group: None
Status: Open
Resolution: None
>Priority: 3
Submitted By: John Williams (johnw42)
Assigned to: Nobody/Anonymous (nobody)
Summary: implementation of Text.dump method
Initial Comment:
This is a fairly robust implementation of the dump
command for the text widget. It supports all the
options of the underlying Tk command. This patch is
relative to version 2.2.1.
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-04-22 14:07
Message:
Logged In: YES
user_id=6380
A quick test suggets that you don't parse the dump output
correctly. I entered "The quick brown fox jumps over the
lazy dog.\n" into a text widget, and then called
t.dump("1.0", "2.0"). It returned the following garbage:
[('text', '{The', 'quick'), ('brown', 'fox', 'jumps'),
('over', 'the', 'lazy'), ('dog.}', '1.0', 'mark'),
('current', '1.44', 'mark'), ('anchor', '1.44', 'mark'),
('insert', '1.44', 'text'), ('{', '}', '1.44')]
It looks like you don't parse the curly braces at all.
Maybe you can find someone on c.l.py to help you fix this?
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=546244&group_id=5470