pyworkflow.wizard module

This module is mainly for the Viewer class, which serve as base for implementing visualization tools(Viewer sub-classes).

class pyworkflow.wizard.Wizard[source]

Bases: object

This is a special case of GUI to help the user selecting important parameters.

The _targets attribute is used to define to which parameters the Wizard can deal with. It will be a list of tuples such as:

_targets = [(DefImportMicrographs, ['voltage', sphericalAberration']), (DefCTFMicrographs, ['lowRes', 'highRes'])]

EMPTY METHOD. Deprecated.This method should return the string value of the view in web that will respond to this wizard. This method only should be implemented in those wizards that have WEB_DJANGO environment defined.

show(form, *params)[source]

EMPTY METHOD. Needs to be implemented in your class. This will be called to show the wizard.

  • form – the protocol form, given access to to all parameters. Some times the same wizard will modify several elements in the form.

  • params – a list of params to modify. Sometimes the wizard can be generic and can be used for different parameters in the same form.