Makemesh example errors

Hi,

I am talking about this example.

  1. import tkinter as Tkinter is required due to misspelled name of the module.
  2. After [1] and passing the auth_token I get an error:

image

Any ideas what’s that about?

Ahh, just realized on this machine I don’t have RhinoWIP installed.
Could that be it?

Tkinter has been renamed to tkinter in Python 3.

– Dale

Hi @dale,

I agree but it is not specified here:

May I suggest a change:

import platform
import sys

pyver = sys.version_info[0]
pyimpl = platform.python_implementation()

if pyimpl == "CPython"and pyver == 3:
    import tkinter as Tkinter
elif pyimpl == "CPython" and pyver == 2:
    import Tkinter

The samples are open-source - submit a pull request.

– Dale

The second issue is more disturbing, what about that one?