Is tkinter not supported in Rhino’s script editor? I’ve tried installing with # r: tkinter as well as with pip but neither are working. I have been able to install matplotlib just fine.
I tested this on the newest Rhino 8.6:
#! python3
import rhinoscriptsyntax as rs
import scriptcontext as sc
import math
import System
import System.Collections.Generic
import Rhino
import tkinter
tkinter._test()
Worked fine.
What error is happening on the computer?
Go to the Tools pulldown > Open Logger and send the results may help.
Also, Rhino does come with ETO built in that can also be used:
I just get a traceback error to line 36 saying No module named ‘tkinter’ (see image below)
I was able to get it installed in my default python library so I can run the test dialog fine from the terminal, but it isn’t wanting to install in rhinocode. when I try installing via pip in the rhinocode directory, I get this error:
ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
ERROR: No matching distribution found for tkinter
I’m on 8.5, but it says it’s up to date when I run a check.
I was hoping to get tkinter working instead of Eto because I wanted to explore tkintermapview (which incidentally installed fine)
Yes, please send us the full Log. We will take a look.
Also, we have made a lot of updates in 8.6, here is a downloader for windows that will update Rhino 8:
https://files.mcneel.com/dujour/exe/20240408/rhino_en-us_8.6.24099.11001.exe
There’s a youtrack issue by @eirannejad re implementing tkinter: https://mcneel.myjetbrains.com/youtrack/issue/RH-67505
Looks like it worked on Windows, but not on Mac.
Yes the update worked for me. Thanks!
Hi, sorry to revive an old thread but I am seeming to have the same issue as Kyle did. I have updated my rhino earlier today (version 8.13) but it still gives an error message of ‘no module named tkinter’. I’m a bit rusty with python, so I might be missing something obvious. Any help would be greatly appreciated, thanks.