This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: IDLE - file list improvements
Type: enhancement Stage: test needed
Components: IDLE Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: markroseman, terry.reedy
Priority: normal Keywords: patch

Created on 2015-09-08 15:53 by markroseman, last changed 2022-04-11 14:58 by admin.

File name Uploaded Description Edit
hide_flist_internals.patch markroseman, 2015-09-08 16:02 review
Messages (2)
msg250229 - (view) Author: Mark Roseman (markroseman) * Date: 2015-09-08 15:53
This is a placeholder for what will be a series of patches to the FileList to generalize and enhance it.

This is part of generalizing pieces of IDLE to be more flexible, including things like editors not necessarily being in toplevel windows, dialogs not being modal, etc.

The goal is to turn the FileList into an application "hub" that knows about the various pieces of the application, and can be used for communication between them. Some aspects of this will include:

1. Ensuring other modules don't use internal implementation (e.g. dict/inversedict) so can change it later.

2. Merging PyShellFileList into here (will keep things simpler).

3. Having FileList launch/keep track of certain dialogs (e.g. config) or other non-editor components.

4. Eventually take on some other responsibilities from editors, part of a general component/container refactoring.
msg250231 - (view) Author: Mark Roseman (markroseman) * Date: 2015-09-08 16:02
This first patch is a straight refactoring so that other modules do not touch the FileList internals. 

This is done in two steps. First, we remove references to inversedict etc. from outside FileList.

Second, we run all notifications through FileList. So for example when the config dialog wants to notify all editors of changes, it previously walked through the list of windows and called various editor methods directly. Now, the config dialog asks FileList to notify all editors. Each editor implements the callback to make the needed changes. 

Same code, just moved to a more appropriate place. The config dialog no longer needs any knowledge of FileList or of EditorWindow. Later more of these sorts of callbacks will be added. Doing it this way provides a framework where different components might respond differently to these notifications.
Date User Action Args
2022-04-11 14:58:20adminsetgithub: 69219
2020-06-06 22:29:38terry.reedysetnosy: - kbk, roger.serwy

versions: + Python 3.10, - Python 3.6, Python 3.7
2017-06-19 20:53:12terry.reedysetassignee: terry.reedy
stage: test needed
versions: + Python 3.7, - Python 2.7, Python 3.4, Python 3.5
2015-09-08 16:02:56markrosemansetfiles: + hide_flist_internals.patch
keywords: + patch
messages: + msg250231
2015-09-08 15:53:19markrosemancreate