Author MartyMacGyver
Recipients MartyMacGyver, ned.deily, serhiy.storchaka, steve.dower, terry.reedy, tim.golden, zach.ware
Date 2015-04-20.02:12:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
FYI, I'm currently using calls into Tkinter to get more detailed version info. Some methods work better than others... I've outlined my attempts below for reference (the last tcl_ver and tk_ver outputs are the ones I'm using, even though they are somewhat different in how they are written).

try:  # Python2
    import Tkinter as tk
except ImportError:  # Python3
    import tkinter as tk

root = tk.Tk()

tcl_ver = tk.TclVersion  # Typical but low precsion
tcl_ver = tk.Tcl().eval('info patchlevel')  # Works but uses eval()
tcl_ver ='info', 'patchlevel')  # Fails (AttributeError)
tcl_ver = tk.Tcl().call('info', 'patchlevel')  # Works, using

tk_ver = tk.TkVersion  # Typical but low precsion
tk_ver = tk.Tk().eval('info patchlevel')  # Works but makes extra window, uses eval()
tk_ver = tk.Tk().call('info', 'patchlevel')  # Works but makes extra window
tk_ver ='info', 'patchlevel')  # Works, using
Date User Action Args
2015-04-20 02:12:37MartyMacGyversetrecipients: + MartyMacGyver, terry.reedy, tim.golden, ned.deily, zach.ware, serhiy.storchaka, steve.dower
2015-04-20 02:12:37MartyMacGyversetmessageid: <>
2015-04-20 02:12:37MartyMacGyverlinkissue23982 messages
2015-04-20 02:12:37MartyMacGyvercreate