Im my code (links after the sample code, below) the single line of code
accelCaptionAng = wtext(text=f" Acceleration's acute angle from centripetal = {phi:.3f}<sup>o</sup>")
is the culprit for some reason. All the other lines of code that have
accelCaptionAng.text = f"...'..."
work fine and display the embedded single quote as the apostrophe it is intended to represent.
So, for some reason, embedding a single quote between double quotes within the first instance of creating a wtext generates the infinite loading loop (but not so in off-line IDLE and command-line versions) while modifying the text via .text = .... allows for the embedded single quote. So changing that first instance of the wtext from the above to
accelCaptionAng = wtext(text=f" Acceleration acute angle from centripetal = {phi:.3f}<sup>o</sup>")
and then immediately following it up with
accelCaption.text=f" Acceleration's acute angle from centripetal = {phi:.3f}<sup>o</sup>"
resolves the issue, but seems bizarre to be needed.
Thanks for this report. As it happens, very recently I Iearned that the same problem occurs with the label object, and preceding the label statement with s = the desired string, and in the label statement saying text=s, got around the problem, which is similar to what you did. It seems very odd that this failure in both label and wtext was never reported until now.Bruce
--
---
You received this message because you are subscribed to a topic in the Google Groups "Glowscript Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/glowscript-users/ITD7pWbg0eI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to glowscript-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glowscript-users/f165f8f9-9676-4473-a82a-7e45d63db935n%40googlegroups.com.