diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-05-06 13:50:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 13:50:38 +0300 |
commit | 15dbe8570f215bfb4910cdd79b43dafb2ab6b38f (patch) | |
tree | 4bd84c0560fba0aea940aa74056ae57ea987d970 /Lib/idlelib/help_about.py | |
parent | d707d073be5ecacb7ad341a1c1716f4998907d6b (diff) | |
download | cpython-git-15dbe8570f215bfb4910cdd79b43dafb2ab6b38f.tar.gz |
gh-91827: Add method info_pathlevel() in tkinter (GH-91829)
Diffstat (limited to 'Lib/idlelib/help_about.py')
-rw-r--r-- | Lib/idlelib/help_about.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/help_about.py b/Lib/idlelib/help_about.py index c59f494599..9cb3ba78c5 100644 --- a/Lib/idlelib/help_about.py +++ b/Lib/idlelib/help_about.py @@ -76,8 +76,8 @@ class AboutDialog(Toplevel): bg=self.bg, font=('courier', 24, 'bold')) header.grid(row=0, column=0, sticky=E, padx=10, pady=10) - tk_patchlevel = self.tk.call('info', 'patchlevel') - ext = '.png' if tk_patchlevel >= '8.6' else '.gif' + tk_patchlevel = self.info_patchlevel() + ext = '.png' if tk_patchlevel >= (8, 6) else '.gif' icon = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'Icons', f'idle_48{ext}') self.icon_image = PhotoImage(master=self._root(), file=icon) @@ -105,7 +105,7 @@ class AboutDialog(Toplevel): text='Python version: ' + version, fg=self.fg, bg=self.bg) pyver.grid(row=9, column=0, sticky=W, padx=10, pady=0) - tkver = Label(frame_background, text='Tk version: ' + tk_patchlevel, + tkver = Label(frame_background, text=f'Tk version: {tk_patchlevel}', fg=self.fg, bg=self.bg) tkver.grid(row=9, column=1, sticky=W, padx=2, pady=0) py_buttons = Frame(frame_background, bg=self.bg) |