Ambiguous error whilst adding tooltips to drawings? #2204
Unanswered
Ctri-The-Third
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
My goal is to have a tooltip on a drawn item (currently a circle, eventually a sprite).
However I'm getting an error when I do so:
<built-in function add_text> returned a result with an exception set
which from my research suggests that I'm not using the correct methods (something about yielding vs creating items, which I don't fully follow I admit)Here's the trimmed code:
And that code is called from
that's not a complete bit of code, but it works fine until the add_text to tooltip method is added, after which it falls apart.
I tried using "with tooltip(w.symbol):" and got the same error at the end, which other discussions here suggested could be important (I assume the difference between using
yield something
andvariable = something
? My knowledge on the subject of generators is a little lacking, so if that's an area I need to read up on before continuing, please let me knowAny insights would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions