Skip to content
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

bpo-35086: Fix tkinter docs A Simple Hello World Program #10160

Merged
merged 1 commit into from Oct 30, 2018

Conversation

daniellovell
Copy link
Contributor

@daniellovell daniellovell commented Oct 28, 2018

Application class does not hold onto the master Tk() instance as a class attribute. This is a good practice, and newcomers to tkinter would likely have trouble closing the window without this since root will almost never be in the global namespace.

https://bugs.python.org/issue35086

Application class does not hold onto the master Tk() instance as a class attribute.
@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

@daniellovell
Copy link
Contributor Author

daniellovell commented Oct 28, 2018

Not sure why it says my CLA is not signed - I submitted earlier today.
devguide says make take a day to register, so I'm assuming that's the issue.

Regarding no news entry: I did not feel this change was significant enough to be reflected in Doc/whatsnew

@miss-islington
Copy link
Contributor

Thanks @NuclearLemon for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 30, 2018
…nGH-10160)

The root widget was accessed as a global variable in the Application's method.
(cherry picked from commit a80af77)

Co-authored-by: Daniel Lovell <lovell.daniel92@gmail.com>
@bedevere-bot
Copy link

GH-10241 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 30, 2018
…nGH-10160)

The root widget was accessed as a global variable in the Application's method.
(cherry picked from commit a80af77)

Co-authored-by: Daniel Lovell <lovell.daniel92@gmail.com>
@bedevere-bot
Copy link

GH-10242 is a backport of this pull request to the 3.6 branch.

@miss-islington
Copy link
Contributor

Sorry, @NuclearLemon and @serhiy-storchaka, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker a80af770870937271865b5e2b05a2cfe40b024b6 2.7

miss-islington added a commit that referenced this pull request Oct 30, 2018
)

The root widget was accessed as a global variable in the Application's method.
(cherry picked from commit a80af77)

Co-authored-by: Daniel Lovell <lovell.daniel92@gmail.com>
miss-islington added a commit that referenced this pull request Oct 30, 2018
)

The root widget was accessed as a global variable in the Application's method.
(cherry picked from commit a80af77)

Co-authored-by: Daniel Lovell <lovell.daniel92@gmail.com>
@serhiy-storchaka serhiy-storchaka removed their assignment Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants