[vtk-developers] Fwd: [vtk.uservoice.com] New suggestion: 'Return support for Tkinter widgets.' (Berk Geveci)

Andrew Maclean andrew.amaclean at gmail.com
Thu Aug 13 07:06:38 EDT 2015


Hi David,
That really, helped, you are absolutely correct there are dll problems.

The anaconda python 3.4 uses: tk86t.lib/dll and tcl86.lib/dll.
Oddly enough anaconda python 2.7 uses:  tk85.lib/dll and tcl85.lib/dll.
Tcl uses: tk86t.lib/dll and tcl86.lib/dll.

I really don't know but the "t"  in tk86t.dll might mean testing.
This was the only reference I could find:
https://mail.python.org/pipermail/python-checkins/2015-July/137091.html

So I changed the CMakeCache.txt file as follows:

// TCL_LIBRARY:FILEPATH=C:/Tcl/lib/tcl86.lib
TCL_LIBRARY:FILEPATH=C:<user path>/Anaconda/envs/py34/tcl/tcl86t.lib

//TK_LIBRARY:FILEPATH=C:/Tcl/lib/tk86.lib
TK_LIBRARY:FILEPATH=C:<user path>/Anaconda/envs/py34/tcl/tk86t.lib


Rebuilt and all the tests pass using:
ctest -C Debug -R vtkRenderingTkPython

Tcl works as long as the Tcl path is before the Anaconda path. However the
Tcl tests don't work because vtk can't find a useable init.tcl

I think I have to add the path to init.tcl namely: C:C:<user
path>/Anaconda/envs/py34/tcl/tcl8.6 and rebuild.

I'll try this tomorrow.


Regards
   Andrew



On Thu, Aug 13, 2015 at 2:05 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi Andrew,
>
> To be sure about the version, you can check inside python itself:
>
>     >>> import tkinter
>     >>> tkinter.TkVersion
>     8.6
>
> To check even deeper, you can go into the DLLs folder in Python and check
> the properties of the DLLs that Python links too.  That will provide the
> exact version number.
>
>  - David
>
> On Wed, Aug 12, 2015 at 9:50 PM, Andrew Maclean <andrew.amaclean at gmail.com
> > wrote:
>
>> Thanks for this David,
>>
>> I'll check this out. I have had Tcl problems that I resolved by putting
>> the windows default paths last.
>> My Python's Tk, Tcl are all 64-bit.
>>
>> Regards
>>     Andrew
>>
>> On Thu, Aug 13, 2015 at 1:18 PM, David Gobbi <david.gobbi at gmail.com>
>> wrote:
>>
>>> Hi Andrew,
>>>
>>> I found some time this morning to build Tcl/Tk on my Windows system, and
>>> for me all of the Tkinter tests ran fine under Python 3 on Windows.  Are
>>> you sure that you don't have a version mismatch between Python's tk and
>>> VTK's tk?  Another possibility is that it's related to 64-bit Windows
>>> builds versus 32-bit Windows builds (my build was 32-bit).
>>>
>>>  - David
>>>
>>>
>>> On Wed, Aug 12, 2015 at 8:54 PM, Andrew Maclean <
>>> andrew.amaclean at gmail.com> wrote:
>>>
>>>>
>>>> FYI
>>>>
>>>> At this stage Tk support is certainly in VTK 6.3 and the python support
>>>> for Tk is Python 2.5 - 2.7 there. I did translate the Tk tests into Python
>>>> a few months ago. So for VTK 6.3 binaries it should be ok to turn on Tk
>>>> support.
>>>>
>>>> For the current master there is Tk support for both Python 2 and Python
>>>> 3, however the Python Tk tests using Python 3 only work Ok on Linux and OSX
>>>> (I think - not tested by by myself) however there is an issue with windows
>>>> (a segfault).
>>>>
>>>>
>>>> Andrew
>>>>
>>>>
>>>>
>>>>
>>>>> ---------- Forwarded message ----------
>>>>> From: Berk Geveci <berk.geveci at kitware.com>
>>>>> To: David E DeMarle <dave.demarle at kitware.com>
>>>>> Cc: VTK Developers <vtk-developers at vtk.org>, David Gobbi <
>>>>> david.gobbi at gmail.com>
>>>>> Date: Wed, 12 Aug 2015 12:08:20 -0400
>>>>> Subject: Re: [vtk-developers] Fwd: [vtk.uservoice.com] New
>>>>> suggestion: 'Return support for Tkinter widgets.'
>>>>> OK thanks for the info. I will respond and try to find out more. Maybe
>>>>> it's a distro that he is talking about...
>>>>>
>>>>> -berk
>>>>>
>>>>> On Wed, Aug 12, 2015 at 11:49 AM, David E DeMarle <
>>>>> dave.demarle at kitware.com> wrote:
>>>>>
>>>>>> Tk is not turned on in the vtkpython binaries.
>>>>>>
>>>>>> Last time was probably in the Tcl binary (windows only) in 5.8 or
>>>>>> 5.10.0.
>>>>>>
>>>>>>
>>>>>>
>>>>>> David E DeMarle
>>>>>> Kitware, Inc.
>>>>>> R&D Engineer
>>>>>> 21 Corporate Drive
>>>>>> Clifton Park, NY 12065-8662
>>>>>> Phone: 518-881-4909
>>>>>>
>>>>>> On Wed, Aug 12, 2015 at 11:42 AM, David Gobbi <david.gobbi at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> That's news to me.  Just yesterday, me and Andrew were testing the
>>>>>>> Tk widgets to make sure that they were compatible with the Python 3 changes
>>>>>>> on all platforms. Are they still packaged in the binary releases?
>>>>>>>
>>>>>>>  - David
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Aug 12, 2015 at 9:19 AM, Berk Geveci <
>>>>>>> berk.geveci at kitware.com> wrote:
>>>>>>>
>>>>>>>> Hi folks,
>>>>>>>>
>>>>>>>> This came through VTK's uservoice. I didn't think that we stopped
>>>>>>>> support any Tk widgets. Am I wrong?
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> -berk
>>>>>>>>
>>>>>>>> ---------- Forwarded message ----------
>>>>>>>> From: VTK <no-reply at vtk.uservoice.com>
>>>>>>>> Date: Wed, Aug 12, 2015 at 11:02 AM
>>>>>>>> Subject: [vtk.uservoice.com] New suggestion: 'Return support for
>>>>>>>> Tkinter widgets.'
>>>>>>>> To: "berk.geveci" <berk.geveci@ <berk.geveci at gmail.com>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Customer Feedback for VTK vtk.uservoice.com
>>>>>>>> <http://email.uservoice.com/c/eJxVjksSgyAMQE9Tlg4YQmDBWRxIomXUOkOt569d9gDvI1lwNC0jcsV5FkiplomAPMzqIxDW4ryzESPow9vPW_t1NNaBj908c3ABxNugdhRMETU5KFS42pIsIpktX-c6_GNnL7y21zLxIZqpktx1JQGimKKMrlRgD5yQA0bTc9W-Doteyu1-WPbStp_oC9yGOjE>
>>>>>>>> New suggestion
>>>>>>>> 1
>>>>>>>> votes
>>>>>>>> Return support for Tkinter widgets.
>>>>>>>> <http://email.uservoice.com/c/eJxVT8uOxCAM-5r2RlUaKHDgMJf9jRGPwKA-qIB2f3-Z40qRktiyZXvt-TImzbmzPAQPSlnzFiAYBGQSBLeGMjpLLgEHNt8Vy5OTw8nlY_xoiasTljoK4HENkuOCSClX1Epv5zDu-tPaNcBrWH76PG2b_nl0zPgjnX2HXO6j9gMonyWJeGIxe__rHSPWlvL5ZdWieh5GCra7nKTe15VLI11N2pbOhoX8Jh-x1bEV4zoU3y571MIK32ui8CCEVNIv1FhwDJzibuVyLNpi2aaID7rUy8bDpP0b8g-1-16E>
>>>>>>>>
>>>>>>>> Posted in General
>>>>>>>> <http://email.uservoice.com/c/eJxVjr2OwyAQhJ_GdGcZL-uFgiJNXiNaYHGQ_yLs-PmPK08aaUZTzHzJJxxV8YgxYM4JnAv8IiADWYwFwsDa6MGiBenM8D2l3keJ0sdjU29vMgzsgJmIUUbn9OS0OGTIZNPEavXv6_p08OjGZ9N9Lf2_jdZx2srePB_1u50tgMbB_syyS-VVXZXjUvb5FY8kngKlxiqUgMg6m0bNAaKB6DBOaFX1QerSz3JLLI143risf0-_hZpIvg>
>>>>>>>>
>>>>>>>> Tkinter is a good GUI toolkit, is cross-platform, simple to use and
>>>>>>>> lightweight (as opposed to Qt), which is important for scientific users
>>>>>>>> like me developing tools with graphics capabilities.
>>>>>>>>
>>>>>>>> I know it is not very popular, but it only needs support and usage
>>>>>>>> to gain visibility and expand its user base. Lack of support from important
>>>>>>>> projects like VTK don't help in the cause, so it seems to me like a vicious
>>>>>>>> circle.
>>>>>>>>
>>>>>>>> So please, return the support for the widgets.
>>>>>>>>
>>>>>>>> [image: Guille Giraldo]Guille Giraldo
>>>>>>>> <http://email.uservoice.com/c/eJxVjruuwyAQRL_GdLGCl2dBcZv7GxHsLgQZxxFx_P0hZaSRjjTFzKFAehE1aI1J50zgfYo3C1ZBZuXA6hSlklenHfCkru8X93OvyDPum7iHaE1Oi4zkyAMatNLkvJDUng2Q8aKF-3E8J_iblv-R81jnn43RRdrqY_Dbvwa9UsZ7kJfyrq3xpdQeG-3i6BHX-ig33ImDTZaGNFsCa513NCwSoAL0Go12oofEfZ0Ln4x1qJct1va9_ABikkwU>
>>>>>>>> on Aug 12, 2015 (0 comments
>>>>>>>> <http://email.uservoice.com/c/eJxVT8uOhCAQ_Bq9YZSHwIHDXPY3JtC0DFHRILq_vz3HTTrpV1V3VXRR8T47pSCoZYnC2uDfWmgpFpRGaBX8JKfRKCOwk-N9YX2ODDjAsfcfhxrl6CFIzhGin4F78LM0alQQQZl-c5_Wzk68Ov5D8bR1-HeDZj7uuVBejnrvFxViUqNhCQtWv1F_3Snh1fJRvlvLLemRrGK7a2HXfZ5HbYzYrK25NKzsN8eEjcCC8PRkx9KuvlUPBEhvOCI6HXQk06ij0NpYE_nkgwApwCqYSXl1Aes6JHwQMllPu8_bV_IfSddjYA>)
>>>>>>>>
>>>>>>>> Delete
>>>>>>>> <http://email.uservoice.com/c/eJyFUsGO4yAM_Zr0lipgE8whh5VG-xsVYJNBbZKKkM7vD9nDaqeXlZDA9nvm-QFPbPQlT8bEYFJicC74mwWLkAQJrAleoRrIEEiHw7FLeW05yjVuy-VziiwGfcSojNdaEEl4JCadBh6Mkstj-qz12cGvTv9u61Xv1x89Ws7zkte2p60cy94OoMxA_SyrFP9o8X7Ms-w1b-tZddo1PdgXqUdZ-_14PrdS-8bu6z2vVUr_lXmWeoJl8flx8_Ekd_AWfhRZtpd0evw3f1u3NUqrjkmLFedQu-aMgxEIKY1t2mRQWf3O2_O8-qbpD9dS4iGOZERrxGD8AJEUJUxEfkhglHfeRVbNeGTvmYhdDACuQRjfe9e8NAf80pz8UAgOnLKo_qIe25wbaLvLORYMTV0Y3HkzCrNwiAk9ORTwJpwD1-JjM2u-xY1PvTZYbkrEMlhLjlgrHyAiRGfiaOjygzD9F16mIOV-neUlMbd_M58yz_f-BpF3xug> Mark
>>>>>>>> as Spam
>>>>>>>> <http://email.uservoice.com/c/eJyFUk2P4yAM_TXtLRVgwHDIYaXR_o0KsMmgNkmV0M7fH2cPq51eVkIytt-znj9oJGfObXSuZFcrQYw5XRHQQmUbAF1O2moVXAA-WfXceXutrfClrPP5cwRlKlbwoZLHmJWD5AhU8DGy9smf7-Nn748T_DqZ3_Je_Xb5UUNiiea2iK3r9px3-YB2KgwTL7ylu_j7c5p4721djmw0UfTYYeP-3JZhfz4e69YHYQ_91pbO2_DVaOJ-gHlO7X5N5SCf4M392B9JBPh_o9dlXQpLLlhLnjU5yy6z5oDVJK7J1Mgcanzn7W1akij6w82eWEdyynmjPZJCb0N1gAZKEPWe0FUNUCwGEAxxiKYGVKBcwvReu7dZ-k-zzPFDW4gQNVr9F3Vfpyag9cZHU6A0mqyiMdZaJmLKpdoUomVZTmah9S0VGdV0LSsdejEjyQEwEiCGGMjolEUclOiKd-H8gzD-F76NmbfbZeIXlyZXMx0yj21_AyJExBM>
>>>>>>>>
>>>>>>>> If you would like to stop receiving these emails you may
>>>>>>>> unsubscribe
>>>>>>>> <http://email.uservoice.com/c/eJyFkUFrAyEQhX9NcgzqqKOHPRRK_0ZQZ9xKsm7ZNfn9ne2hkF4KgvD43hufQxM5c26TcyW7WglizOmKgBYq2wDoctJWq-AC8Mmqx87bc22FL2Vdzp9TcpA9W6rVc9KgYtKsk1FZmWBJ0_k-fY7xdYK3k_mQ8xy3y0uGaImW1uU-9F1ujdp4FQ6l74-8l61lPsEHL6ndr6mMtvZrX3sR8d3pjDpGFaB6NAqBAmGh5KPyxlZJ8S--vc09jcf247VBGAhO7KR8cLmqSApIGoECCBUDCBBRqngsUKMzilkmBhsS_80ebeF9pEXqvmuxQdRo9S91X-cm0HrjLgAojSaraIy1lomYcqk2hWgZkss_4U_uQ9D9Mc8SLCPke_zYUrm1Pl_LSkcLzEiyPUYCxBADGZ0yFAsluuJdOL8Ypn_xbcq83S6zTC9NVj4fjz9W9Q32v6sN>
>>>>>>>> .
>>>>>>>>
>>>>>>>> [image: powered by UserVoice]
>>>>>>>> <http://email.uservoice.com/c/eJxdj7FuhTAMRb8GtiKCE5IMGZ5UvaVr1RUljsOL4AFKA7R_39Ctlbz46OrY1xsvujoaIdCJEDxo7ewgQXIIxBVI4SzjrFVCAVW83T8pHWtEanB91g-jmLO9bTt0DNvQgsC-V4Gg90G7wLGezSPnrYJb1d3LnOfZ_HEUtq0nJfIv7ruC-34MhW52Kcvrx_tb1fW_aMkW87CnueAjT_8lV4i-NkqRFqSSoaeNc52TxSkuYxF4MtJJX3qS9CCl0sp3zDpADqjL30LVyThKUzPSQRhL2_GSXAd-ABOtYHI>
>>>>>>>>
>>>>>>>
>>
>>
>> --
>> ___________________________________________
>> Andrew J. P. Maclean
>>
>> ___________________________________________
>>
>
>


-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150813/16a2fc09/attachment-0001.html>


More information about the vtk-developers mailing list