|
From: Poul R. <Pou...@sk...> - 2008-10-11 19:17:34
|
I see...
Next problem:
I want to introduce some sliders but as soon as I add the line 'from
visual.controls import *' I get the following error message:
Traceback (most recent call last):
File "C:/Python25/Lib/site-packages/visual/examples/texttest_3", line
10, in <module>
homesweethome=text(display=textscene,pos=(0,3,0), string='HOME SWEET
HOME', color=color.red,height=0.1,width=0.1, depth=0.05, justify='center')
TypeError: 'module' object is not callable
What is wrong?
Poul Riis
from visual.text import *
from visual.controls import *
textscene=display(title="Testing text in
3D...",width=860,height=860,forward=(-2,-1,-0.5))
xakse=arrow(pos=(-3,0,0),axis=(6,0,0),color=(1,0,1),shaftwidth=0.05,fixedwidth
= 1)
yakse=arrow(pos=(0,-3,0),axis=(0,6,0),color=(1,1,0),shaftwidth=0.05,fixedwidth
= 1)
zakse=arrow(pos=(0,0,-3),axis=(0,0,6),color=(0,0,1),shaftwidth=0.05,fixedwidth
= 1)
homesweethome=text(display=textscene,pos=(0,3,0), string='HOME SWEET
HOME', color=color.red,height=0.1,width=0.1, depth=0.05, justify='center')
|