donkirkby / live-py-plugin

Live coding in Python with PyCharm, Emacs, Sublime Text, or even a browser
https://donkirkby.github.io/live-py-plugin
MIT License
292 stars 56 forks source link

Browser complains about tkinter #431

Closed donkirkby closed 2 years ago

donkirkby commented 2 years ago

What I did

Caused an error in some turtle code by using a bad colour name. This happens in the browser version or in PyCharm when there's no tkinter support in the Python interpreter.

import turtle as t

t.color('unknown colour')

What happened

It raised an error about tkinter:

AttributeError: module 'tkinter' has no attribute 'TclError'

What I wanted to happen

It should complain about the bad colour name.

My environment

Describe the versions of everything you were using: