summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorRoger Serwy <roger.serwy@gmail.com>2013-04-09 01:57:13 (GMT)
committerRoger Serwy <roger.serwy@gmail.com>2013-04-09 01:57:13 (GMT)
commit789299f85802caddcb2bdd3f0c367c9f1b07a03b (patch)
treee213947126bcf407c35c349b9030bbb2653d4e17 /Lib/idlelib
parent371432b961b7f5b410c13b0022e23111115f1d59 (diff)
downloadcpython-789299f85802caddcb2bdd3f0c367c9f1b07a03b.zip
cpython-789299f85802caddcb2bdd3f0c367c9f1b07a03b.tar.gz
cpython-789299f85802caddcb2bdd3f0c367c9f1b07a03b.tar.bz2
#17657: Show full Tk version in IDLE's about dialog.
Patch by Todd Rovito.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/aboutDialog.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/idlelib/aboutDialog.py b/Lib/idlelib/aboutDialog.py
index 43a1313..0734518 100644
--- a/Lib/idlelib/aboutDialog.py
+++ b/Lib/idlelib/aboutDialog.py
@@ -66,12 +66,7 @@ class AboutDialog(Toplevel):
labelPythonVer = Label(frameBg, text='Python version: ' + \
sys.version.split()[0], fg=self.fg, bg=self.bg)
labelPythonVer.grid(row=9, column=0, sticky=W, padx=10, pady=0)
- # handle weird tk version num in windoze python >= 1.6 (?!?)
- tkVer = repr(TkVersion).split('.')
- tkVer[len(tkVer)-1] = str('%.3g' % (float('.'+tkVer[len(tkVer)-1])))[2:]
- if tkVer[len(tkVer)-1] == '':
- tkVer[len(tkVer)-1] = '0'
- tkVer = '.'.join(tkVer)
+ tkVer = self.tk.call('info', 'patchlevel')
labelTkVer = Label(frameBg, text='Tk version: '+
tkVer, fg=self.fg, bg=self.bg)
labelTkVer.grid(row=9, column=1, sticky=W, padx=2, pady=0)