Package Pmv :: Module guiTools :: Class AugmentedMoleculeChooser
[hide private]
[frames] | no frames]

Class AugmentedMoleculeChooser

source code

MoleculeChooser --+
                  |
                 AugmentedMoleculeChooser

presents user w/ a list of molecules currently loaded;
mode can be 'single', 'browse', 'multiple' or 'extended'.
Molecules can be selected from the list or by picking in the camera.
OK button returns a list of entries which have been selected.
Cancel returns an empty list. 
Typical usage is:
    ans = MoleculeChooser(self.vf).go()
    if ans !=[]:
        then get the value(s)

Extra dictionaries can be added to the inputform  to obtain other user defined values. To do this, set extra to not None and extraDict to a list of dictionaries to be appended to the input form.

NB: this class doesn't grab the focus and binds picking w/
B1 to selecting the molecule in the MoleculeChooser. 



Instance Methods [hide private]
  __init__(self, viewer, mode='single', title='Choose Molecule', selectTitle="select a molecule", extra=[], extraDict=None)
  go(self, modal=1, blocking=0, event="<ButtonRelease-1>")
Start the form

Inherited from MoleculeChooser: done_cb, getMolSet, onPick


Method Details [hide private]

__init__(self, viewer, mode='single', title='Choose Molecule', selectTitle="select a molecule", extra=[], extraDict=None)
(Constructor)

source code 
None
Overrides: MoleculeChooser.__init__

go(self, modal=1, blocking=0, event="<ButtonRelease-1>")

source code 
Start the form
Overrides: MoleculeChooser.go