Skip to content

Commit 0803a39

Browse files
committed
#17657: Show full Tk version in IDLE's about dialog.
Patch by Todd Rovito.
1 parent 7e69f00 commit 0803a39

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎Lib/idlelib/aboutDialog.py‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,7 @@ def CreateWidgets(self):
6666
labelPythonVer = Label(frameBg, text='Python version: ' + \
6767
sys.version.split()[0], fg=self.fg, bg=self.bg)
6868
labelPythonVer.grid(row=9, column=0, sticky=W, padx=10, pady=0)
69-
# handle weird tk version num in windoze python >= 1.6 (?!?)
70-
tkVer = repr(TkVersion).split('.')
71-
tkVer[len(tkVer)-1] = str('%.3g' % (float('.'+tkVer[len(tkVer)-1])))[2:]
72-
if tkVer[len(tkVer)-1] == '':
73-
tkVer[len(tkVer)-1] = '0'
74-
tkVer = '.'.join(tkVer)
69+
tkVer = self.tk.call('info', 'patchlevel')
7570
labelTkVer = Label(frameBg, text='Tk version: '+
7671
tkVer, fg=self.fg, bg=self.bg)
7772
labelTkVer.grid(row=9, column=1, sticky=W, padx=2, pady=0)

‎Misc/NEWS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Library
3838
IDLE
3939
----
4040

41+
- Issue #17657: Show full Tk version in IDLE's about dialog.
42+
Patch by Todd Rovito.
43+
4144
- Issue #17613: Prevent traceback when removing syntax colorizer in IDLE.
4245

4346
- Issue #1207589: Backwards-compatibility patch for right-click menu in IDLE.

0 commit comments

Comments
 (0)