Set of widgets that controls a 2D sketcher and has additional widgets
that allow the user to load/save/delete templates for the sketcher and
import structures from the workspace into the sketcher.
|
__init__(self,
master,
builtin_path,
custom_dirname,
layout)
Create a SketcherBox instance |
|
|
|
getDefaultCustomTemplateDir(self)
Get the default directory for user templates |
|
|
|
|
str
|
|
|
importWorkspace(self)
Get the workspace structure and place it in the sketcher |
|
|
|
clearSketcher(self)
Remove the current structure from the sketcher |
|
|
|
buildTemplateList(self,
select="")
Build a list of all templates - built in or user-defined. |
|
|
list
|
|
list of str
|
|
|
|
|
saveTemplate(self)
Save the current sketcher structure as a new user-defined template |
|
|
schrodinger.structure.Structure
|
|
|
loadTemplate(self,
template_index)
Load a template into the sketcher |
|
|
|
setSketcherStructure(self,
struct)
Set struct as the structure in the sketcher |
|
|
|
manageTemplates(self)
Open a window to allow the user to manage existing templates |
|
|
schrodinger.infra.canvas2d.ChmMol
|
|
|
|
schrodinger.structure.Structure or None
|
getSketcherStructure(self,
quiet_if_empty=False)
Get the structure from the sketcher and set it up for use as a Ligand |
|
|
(dict, int)
|
getRxAtoms(self)
Find the atoms marked as R groups in the sketcher structure |
|
|
bool
|
validateRAtomIdentity(self,
rx_atoms,
max_x)
Overwrite in a child class to run validation on the values of the R
atoms and error code. |
|
|
bool
|
|
|
reset(self)
Reset all widgets |
|
|