i am new to panda3d programming i have an small problem which i cant solve
the
error message:
The debugged program raised the exception unhandled NameError
“name ‘TextNode’ is not defined”
it says text node is not defined but in panda3d.org/manual/index.php/Text_Node
they dont give me include i know its my mistake and that i want to solve
here is the code written in python:
from direct.showbase.ShowBase import ShowBase
class myapp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
text = TextNode("node name")
text.setText("hello world panda3d rocks and it is cool")
app = myapp()
app.run()