Repository navigation
bpo-27099: IDLE - Convert built-in extensions to regular features #2494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
5c57faf
d49170f
8c3a966
757bb38
d7e136c
b178af5
2adebb9
86c3d4c
1c246fc
0418ad0
097a0d8
4232e77
a7b29f5
e30b7b4
252672b
999b573
1a74591
3501c45
232f711
f095c53
a661bfa
5c90a8f
5a6a007
709b434
b9b1f9a
8b76ccb
b986c12
f86acaa
5805462
165b548
aee5d02
cb161bd
dc09a2b
100463e
3fbaa90
60ff82f
e3f6f16
a253f0c
fe8eb7a
caa7774
c29184e
c62f726
d0e009f
9e889c2
6afdea3
7de27db
a2e76a7
2265b53
03eed24
207b0ca
00acd22
2d2bfbd
fe76cd3
d2966e0
6845bb0
b7afebb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ def __init__(self, editwin=None): | |
| self._delayed_completion_index = None | ||
|
|
||
| def reset(self): | ||
| self.popupwait = idleConf.GetOption("main", "EditorWindow", | ||
| self.popupwait = idleConf.GetOption("main", "General", | ||
| "autocomplete_wait", type="int", default=0) | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One-liner is not worth a separate function.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Built-in options are effective when they are changed from the config menu. Extensions require restarting IDLE. In order for these to function like built-ins, their changed settings needed to be reloaded from within the editor. That is what the reset function is for. There is one in each of the old extensions that had options. It seems the activation got lost when I was resolving conflicts, but it looks like the place to call it is now activate_config_changes in the configdialog. Would you rather I put the functionality back in, or that some of the new options behave differently than the old ones?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I opened bpo-22707 two years ago for this problem, and intended that we work on it after this one. I just posted my analysis and made you nosy. For reasons explained there, I want to leave the class attributes as class attributes. Whether the idleConf wrapper are added here or in 22707, they should be called 'reload'; 'reset' implies changing back to initial values. They should be classmethods called after the class statement. This will preserve the current behavior, which I will manually test. The line length for ReformatParagraph should be a class attribute, and the test adjusted. CodeContext().visible should be left alone until fixed or deleted. I want to deal with changing code to update immediately in 22707, where the new code will be tested. I will add more on that issue. |
||
| def _make_autocomplete_window(self): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want these to be class methods called after the class is created. I will fix for all 4 files. I also changed back to original args -- 'extensions', 'AutoComplete', 'popupwait'.