donkirkby/live-py-plugin

Browser complains about tkinter

donkirkby opened this issue · 0 comments

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:

  • Browser
  • Live Coding plugin 4.8.0
  • Python 3.9.5