
6 Mar
2014
6 Mar
'14
7:21 p.m.
Using python I would like to determine the eraser radius, calculate a new radius and update the widget. I can modify the radius value, but unable to update the parameter on the widget. Using this from VolumeEraser.gui import Volume_Eraser_Dialog v=Volume_Eraser_Dialog() r=v.sphere_radius_scale.value() print r r=r*0.5 v.sphere_radius_scale.set_value(r) If I have a widget radius of 8000,it accesses a default value of 2 rather than the value in the dialog box, and changes the sphere radius to 1. printing v I get the impression that I am access a different widget/gui. Matthew Dougherty National Center for Macromolecular Imaging Baylor College of Medicine