Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   how to tell the version of tk shipped with Python (http://www.velocityreviews.com/forums/t352901-how-to-tell-the-version-of-tk-shipped-with-python.html)

pipehappy@gmail.com 12-29-2005 04:12 PM

how to tell the version of tk shipped with Python
 
I am a newbie to the Python and wonder how I can know version of tk
bound with Python

Can some one tell me?

Thanks


Fredrik Lundh 12-29-2005 04:21 PM

Re: how to tell the version of tk shipped with Python
 
pipehappy@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>




Cameron Laird 12-29-2005 07:08 PM

Re: how to tell the version of tk shipped with Python
 
In article <mailman.2680.1135873833.18701.python-list@python.org>,
Fredrik Lundh <fredrik@pythonware.com> wrote:
>pipehappy@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 $


All times are GMT. The time now is 06:55 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.