-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
bpo-30781: IDLE - use ttk widgets in configdialog #2654
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
Conversation
|
@csabella, thanks for your PR! By analyzing the history of the files in this pull request, we identified @terryjreedy, @kbkaiser and @mlouielu to be potential reviewers. |
|
Maybe I'm not on the date, does this a new policy to changed tkinter constant to string? |
|
On the last file that was converted to use ttk widgets, I also changed the constants to literal strings at the same time because Terry prefers the literal strings. I was applying the same steps here. |
c008c06 to
3ed0cc5
Compare
|
The latest commit converts to ttk widgets. Some comments about the changes:
|
5d794ae to
759370a
Compare
|
I am thinking that having NORMAL and DISABLED stand out is ok. Don't change though yet. |
|
Yes, I had been keeping up with resolving the conflicts, but haven't done it in a few days, since the restructuring to the classes got the momentum. Once you're ready for this, I'll just do it all then. |
8148041 to
b607cc7
Compare
terryjreedy
left a comment
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.
For the ttk issue, I want a minimal patch that only does what is needed to make the switch, or to be consistent about state ('disabled' instead of DISABLED with '!disabled', and 'normal'). I noted most but perhaps not all of these.
I believe everything other that the one note in the tests is needed. For configdialog, 80% is extraneous, so I presume it would be easier to start fresh.
I definitely want to switch to True, False, and widget['option'] = value, but in a separate style issue, at least after disposing of existing patches.
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.
Make this 'disabled' to be consistent with '!disabled'.
Lib/idlelib/configdialog.py
Outdated
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.
Leave these imports.
Lib/idlelib/configdialog.py
Outdated
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.
Keep
Lib/idlelib/configdialog.py
Outdated
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.
Keep.
Lib/idlelib/configdialog.py
Outdated
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.
Keep block.
Lib/idlelib/configdialog.py
Outdated
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.
Keep.
Lib/idlelib/configdialog.py
Outdated
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.
Keep.
Lib/idlelib/configdialog.py
Outdated
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.
Keep.
Lib/idlelib/configdialog.py
Outdated
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.
Keep.
Lib/idlelib/configdialog.py
Outdated
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.
Keep.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase From Terry. Please don't unless I ignore new commits for a couple of days. Just continue with decent commit messages. |
|
I didn't expect the Spanish Inquisition! |
|
Nobody expects the Spanish Inquisition! @terryjreedy: please review the changes made to this pull request. |
terryjreedy
left a comment
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.
Pending a 'human test', looks good.
In title of existing news blurb, Misc/NEWS.d/next/IDLE/2017-07-28-18-59-06.bpo-30781.ud5m18.rst, change 'Notebook' to 'widgets'. Add 'Patches by Terry Jan Reedy and Cheryl Sabella.
| Notebook, Radiobutton, Scrollbar, Style) | ||
| import tkinter.colorchooser as tkColorChooser | ||
| import tkinter.font as tkFont | ||
| import tkinter.messagebox as tkMessageBox |
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 to change these in a subsequent 'style' patch, either with other style changes for this file or a separate patch for all files. Probably
from tkinter import colorchooser
from tkinter import messagebox
import tkinter.font as tkfont
I think tkfont may be necessary to not conflict with local font names. Will check with grep first.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I didn't expect the Spanish Inquisition! |
|
Nobody expects the Spanish Inquisition! @terryjreedy: please review the changes made to this pull request. |
Patch by Cheryl Sabella. (cherry picked from commit 7028e59)
Patch by Cheryl Sabella.
First set of commits for converting constants to string literals.
https://bugs.python.org/issue30781