[Patches] [ python-Patches-1672481 ] MultiCall bug crashing the config dialog
SourceForge.net
noreply at sourceforge.net
Tue Mar 6 12:52:44 CET 2007
Patches item #1672481, was opened at 2007-03-02 15:29
Message generated for change (Comment added) made by gbrandl
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1672481&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: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Tal Einat (taleinat)
Assigned to: Nobody/Anonymous (nobody)
Summary: MultiCall bug crashing the config dialog
Initial Comment:
Simple patch to MultiCall which stops IDLE's config dialog from crashing upon OK/Apply.
The bug is caused by ConfigDialog calling event_add() for key bindings only if there are sequences to be bound, while event_delete() is called even if there are no sequences. This causes MultiCall's internal dictionary of virtual events to raise a KeyError when event_delete() is called with a virtual event, for which event_add() was not called.
The Best Thing IMO is to have MultiCall check if such an event exists in its internal dict, and if not - just ignore the event_delete() call.
Patch attached.
----------------------------------------------------------------------
>Comment By: Georg Brandl (gbrandl)
Date: 2007-03-06 11:52
Message:
Logged In: YES
user_id=849994
Originator: NO
Committed in rev. 54156, 54157 (2.5).
----------------------------------------------------------------------
Comment By: Tal Einat (taleinat)
Date: 2007-03-03 18:17
Message:
Logged In: YES
user_id=1330769
Originator: YES
Just to be clear - the bug is that writing certain things in the extension
config file (either the user file or the defaults file) causes IDLE's
configuration handling mechanism to crash. One symptom is that IDLE's
config dialog doesn't save or apply changes, and is therefore useless.
The bug occurs when a config option without a value is added under a
*_bindings or *_cfgBindings section in the extensions config file.
This bug is a result of an assumption in the design of MultiCall which is
not true in this case.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1672481&group_id=5470
More information about the Patches
mailing list