Forum Archive

scene.text() won't show strings

jugisto135

I ran into a problem with scene.text() when trying to show some strings in a simple scene. Most of the times scene.text() will work as expected, but in some cases the text appears to be empty. In fact, the string seems fine, it will print to console without any problems. What might be the problem?

ccc

Can we see some sample code? It is easier to debug Python code that English prose.

If your sample is a long one, then you can go to http://gist.github.com and create an anonymous gist and paste in your code. You can then paste the URL to that gist here.

jugisto135

Yes, thanks. That would have been better. But right now I've truncated the dtring to a fixed length and the problem is gone.