Can Anyone Help Me On An error i have with this code:
[code]
import direct.directbase.DirectStart
from direct.gui.OnscreenText import OnscreenText
from direct.gui.DirectGui import *
from pandac.PandaModules import TextNode
#add some text
bk_text = “experimenting with Direct GUIs”
textObject = OnscreenText(text = bk_text, pos = (0.95,-0.95),
scale = 0.07,fg=(1,0.5,0.5,1),align=TextNode.ACenter,mayChange=1)
#callback function to set text
def setText():
bk_text = “Button Clicked”
textObject.setText(bk_text)
#add button
b = DirectButton(text = (“OK”, “click!”, “rolling over”, “disabled”),scale=.05,command=setText)
maps = loader.loadModel(‘button_maps.egg’)
b = DirectButton(geom = (maps.find(’/button up’),
maps.find(’/button down’),
maps.find(’/button down’),
maps.find(’/button dis’)))
#run the tutorial
run()
[/codthe error basicly saids:
adjusteing global clock’s real time by 7.31876e-006 seconds.
assertion failed
…
…
…
assertion error…
[/img]