This is very nice. It looks well-designed for a moderately-technical teacher to create stuff with a lot of reasonable defaults and assumptions over configuration.
It seems slightly confusing, but I think the idea is that the brace is creating a new text object, which is returned and you can then add it to the scene. So it's not "get the current string" it's "give me a text object with this string." Could have been named `create_text()` perhaps.