#17657: Show full Tk version in IDLE's about dialog.
Patch by Todd Rovito.
This commit is contained in:
parent
7e69f0085e
commit
0803a39561
|
@ -66,12 +66,7 @@ class AboutDialog(Toplevel):
|
||||||
labelPythonVer = Label(frameBg, text='Python version: ' + \
|
labelPythonVer = Label(frameBg, text='Python version: ' + \
|
||||||
sys.version.split()[0], fg=self.fg, bg=self.bg)
|
sys.version.split()[0], fg=self.fg, bg=self.bg)
|
||||||
labelPythonVer.grid(row=9, column=0, sticky=W, padx=10, pady=0)
|
labelPythonVer.grid(row=9, column=0, sticky=W, padx=10, pady=0)
|
||||||
# handle weird tk version num in windoze python >= 1.6 (?!?)
|
tkVer = self.tk.call('info', 'patchlevel')
|
||||||
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)
|
|
||||||
labelTkVer = Label(frameBg, text='Tk version: '+
|
labelTkVer = Label(frameBg, text='Tk version: '+
|
||||||
tkVer, fg=self.fg, bg=self.bg)
|
tkVer, fg=self.fg, bg=self.bg)
|
||||||
labelTkVer.grid(row=9, column=1, sticky=W, padx=2, pady=0)
|
labelTkVer.grid(row=9, column=1, sticky=W, padx=2, pady=0)
|
||||||
|
|
|
@ -38,6 +38,9 @@ Library
|
||||||
IDLE
|
IDLE
|
||||||
----
|
----
|
||||||
|
|
||||||
|
- Issue #17657: Show full Tk version in IDLE's about dialog.
|
||||||
|
Patch by Todd Rovito.
|
||||||
|
|
||||||
- Issue #17613: Prevent traceback when removing syntax colorizer in IDLE.
|
- Issue #17613: Prevent traceback when removing syntax colorizer in IDLE.
|
||||||
|
|
||||||
- Issue #1207589: Backwards-compatibility patch for right-click menu in IDLE.
|
- Issue #1207589: Backwards-compatibility patch for right-click menu in IDLE.
|
||||||
|
|
Loading…
Reference in New Issue