how to tell the version of tk shipped with Python
Cameron Laird
claird at lairds.us
Thu Dec 29 14:08:01 EST 2005
In article <mailman.2680.1135873833.18701.python-list at python.org>,
Fredrik Lundh <fredrik at pythonware.com> wrote:
>pipehappy at gmail.com wrote:
>
>> I am a newbie to the Python and wonder how I can know version of tk
>> bound with Python
>>
>> Can some one tell me?
>
>>>> import Tkinter
>>>> print Tkinter.TclVersion
>8.4
>
></F>
>
>
>
... and, if you need more detail,
>>> print Tkinter.TkVersion
8.4
>>> Tkinter.Tk().tk.eval("info patchlevel")
'8.4.7'
>>> print Tkinter.__version__
$Revision: 1.177 $
More information about the Python-list
mailing list