Thu 20 Sep 2012 01:37:26 PM UTC, comment #4:
It seems that I get an error when my startup script is run.
I don't get the error when I use "from main import run"
Traceback (most recent call last):
File "/home/sofie/pyformex/pyformex/gui/draw.py", line 1382, in play
runAny(step=step,refresh=refresh)
File "/home/sofie/pyformex/pyformex/script.py", line 530, in runAny
return runScript(appname,argv)
File "/home/sofie/pyformex/pyformex/script.py", line 436, in runScript
res = playScript(file(fn,'r'),fn,fn,argv,pye)
File "/home/sofie/pyformex/pyformex/script.py", line 330, in playScript
exec scr in g
File "/home/sofie/landmarkdb/anatomical.py", line 31, in <module>
renderMode('smooth')
File "/home/sofie/pyformex/pyformex/gui/draw.py", line 1208, in renderMode
toolbar.updateNormalsButton()
File "/home/sofie/pyformex/pyformex/gui/toolbar.py", line 272, in updateNormalsButton
updateButton(normals_button,'avgnormals')
File "/home/sofie/pyformex/pyformex/gui/toolbar.py", line 207, in updateButton
button.setChecked(vp.settings[attr])
AttributeError
:
'NoneType' object has no attribute 'setChecked'
|