[Patches] [ python-Patches-1407280 ] ParenMatch: workaround for misinterpreting of closing parens
SourceForge.net
noreply at sourceforge.net
Fri Jul 21 00:23:57 CEST 2006
Patches item #1407280, was opened at 2006-01-16 06:58
Message generated for change (Comment added) made by kbk
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1407280&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
>Group: Python 2.5
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Tal Einat (taleinat)
>Assigned to: Kurt B. Kaiser (kbk)
Summary: ParenMatch: workaround for misinterpreting of closing parens
Initial Comment:
ParenMatch sometimes misinterprets closing parenthesis
because it is given a bad keysym. The real bug is
probably somewhere in the event handling mechanism or
something.
Somehow the text widget gets the right signal and the
appropriate closing paren is written there.
This simple patch checks the last inserted character in
the text widget insted of the generated keysym, and
acts accordingly.
Since the function where the workaround is applied
reads text from the text widget from the same index
anyways, I think this workaround is actually much
cleaner than checking the keysym!
Works like a charm on my Python2.4 WinXP installation.
----------------------------------------------------------------------
>Comment By: Kurt B. Kaiser (kbk)
Date: 2006-07-20 18:23
Message:
Logged In: YES
user_id=149084
Rev 50739. Thanks for the patch!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1407280&group_id=5470
More information about the Patches
mailing list