-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-24813: IDLE: Add icon to help_about #2335
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
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 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.
Lib/idlelib/help_about.py
Outdated
|
||
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__)), |
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 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') |
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.
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.
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.
Thanks. I wasn't sure if I should mock the PhotoImage just to show that the widget is created.
Thanks. Looks better now. :-) |
Patch by Cheryl Sabella (cherry picked from commit d352d68)
Based on part of a patch originally by Mark Roseman.