-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
bpo-31083: IDLE: Document TabPage(Frame) for configdialog #2965
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
@@ -1503,8 +1517,6 @@ def create_page_font_tab(self): | |||
indent_title.pack(side=TOP, anchor=W, padx=5) | |||
self.indent_scale.pack(side=TOP, padx=5, fill=X) | |||
|
|||
return frame |
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.
Does this need to return 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.
No, because calling a class returns a new instance. In this case, the instance, self, is a frame. Create_widgets is now called within init (and the None return ignored) instead of by ConfigDialog.
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.
OK, got it.
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.
Otherwise LGTM.
…honGH-2965) Add template as comment. Update existing classes to match outline. Initial patch by Cheryl Sabella. (cherry picked from commit 6f446be)
@csabella Forgot to ask you, you can setup your name in GitHub settings,then inside the Otherwise you name inside |
https://bugs.python.org/issue31083