__init__(self,
checkbox,
pick_atom_function,
pick_bond_function,
pick_atom_text=' Pick an atom ' ,
pick_bond_text=' Pick a bond ' ,
enable_lasso=False)
(Constructor)
|
|
Initialize picker class.
@param checkbox: pick toggle
@type checkbox: L{QtGui.QCheckBox}
@param pick_atom_function: this function is called when atom is picked.
Must be a callable function that accepts one arguments (atom number, or
ASL if enable_lasso is True).
@type pick_atom_function: function
@param pick_bond_function: this function is called when bond is picked.
Must be a callable function that accepts two arguments (bond atoms).
@type param_bond_function: function
@param pick_atom_text: atom pick text that will be displayed in
Maestro's status area (default "Pick an atom").
@type pick_atom_text: str
@param pick_bond_text: bond pick text that will be displayed in
Maestro's status area (default "Pick an atom").
@type pick_bond_text: str
@param enable_lasso: Whether to allow multiple atoms to be selected
simultaneously via lasso.
@type enable_lasso=False
- Overrides:
object.__init__
|