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.
Created on 2015年09月08日 15:53 by markroseman, last changed 2022年04月11日 14:58 by admin.
| Files | ||||
|---|---|---|---|---|
| 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. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:20 | admin | set | github: 69219 |
| 2020年06月06日 22:29:38 | terry.reedy | set | nosy:
- kbk, roger.serwy versions: + Python 3.10, - Python 3.6, Python 3.7 |
| 2017年06月19日 20:53:12 | terry.reedy | set | assignee: terry.reedy stage: test needed versions: + Python 3.7, - Python 2.7, Python 3.4, Python 3.5 |
| 2015年09月08日 16:02:56 | markroseman | set | files:
+ hide_flist_internals.patch keywords: + patch messages: + msg250231 |
| 2015年09月08日 15:53:19 | markroseman | create | |