New submission from Roger Serwy <roger.se...@gmail.com>:

Two instances of ColorDelegator are in the percolator chain. This is a 
regression from 2.x.

The problem can be found in __init__ of EditorWindow in EditorWindow.py.

Calling "io.loadfile" eventually calls "filename_change_hook" (See 
IOBinding.py's "set_filename"). The "filename_change_hook" calls 
"ResetColorizer" which brings up an instance of ColorDelegator. Then, the 
self.color reference is overwritten by a new ColorDelegator instance and added 
to the percolator chain.

The attached patch fixes the problem.

----------
components: IDLE
files: colorbug.patch
keywords: patch
messages: 148513
nosy: ned.deily, serwy
priority: normal
severity: normal
status: open
title: IDLE: Regression - Two ColorDelegator instances loaded
type: behavior
versions: Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23798/colorbug.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13495>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to