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-24813: IDLE: Add icon to help_about #2335

Merged
merged 3 commits into from
Jun 23, 2017
Merged

Conversation

csabella
Copy link
Contributor

@csabella csabella commented Jun 23, 2017

Based on part of a patch originally by Mark Roseman.

Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to specify icon to left (this is standard), 'IDLE' to its right (in current center). With this position switch and 1 name change, PR will be ready to merge.


tk_patchlevel = self.tk.call('info', 'patchlevel')
ext = '.png' if tk_patchlevel >= '8.6' else '.gif'
iconfn = os.path.join(os.path.abspath(os.path.dirname(__file__)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect 'iconfn' abbreviates 'icon file name'. Too obscure; I'd prefer 'icon' here and below.

"""Test about dialog logo."""
path, file = os.path.split(self.dialog.icon_image['file'])
fn, ext = os.path.splitext(file)
self.assertEqual(fn, 'idle_48')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the best I can think of too. The real test is running help_about for the htest. I did that to experiment with different backgrounds.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I wasn't sure if I should mock the PhotoImage just to show that the widget is created.

@csabella
Copy link
Contributor Author

Thanks. Looks better now. :-)

@terryjreedy terryjreedy merged commit d352d68 into python:master Jun 23, 2017
terryjreedy pushed a commit to terryjreedy/cpython that referenced this pull request Jun 23, 2017
Patch by Cheryl Sabella
(cherry picked from commit d352d68)
terryjreedy added a commit that referenced this pull request Jun 23, 2017
Patch by Cheryl Sabella
(cherry picked from commit d352d68)
@csabella csabella deleted the bpo24813 branch June 23, 2017 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants