[chimera-dev] changing the radius value on volumeEraser

Dougherty, Matthew T matthewd at bcm.edu
Thu Mar 6 19:21:01 PST 2014


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



More information about the Chimera-dev mailing list