Logo Search packages:      
Sourcecode: pymol version File versions

def pymol::rpc::rpcLabel (   pos,
  labelText,
  id = 'lab1',
  color = (1,1 
)

create a text label

  Arguments:
    pos: a 3 tuple with the position of the label
    text: a string with the label
    color: a 3 tuple with the color of the label. (1,1,1) is white
    id: (OPTIONAL) the name of the object to be created

  NOTE:
    at the moment this is, how you say, a hack

Definition at line 80 of file rpc.py.

00080                                                    :
  """ create a text label

    Arguments:
      pos: a 3 tuple with the position of the label
      text: a string with the label
      color: a 3 tuple with the color of the label. (1,1,1) is white
      id: (OPTIONAL) the name of the object to be created

    NOTE:
      at the moment this is, how you say, a hack

  """
  x,y,z = pos
  text="""
Atom

  1  0  0  0  0  0  0  0  0  0999 V2000
% 10.4f% 10.4f%10.4f C   0  0  0  0  0  0  0  0  0  0  0  0
M  END"""%(x,y,z)
  cmd.read_molstr(text,id)
  cmd.label("%s"%(id),'"%s"'%labelText)
  cmd.hide("nonbonded",id)
  cmd.set_color("%s-color"%id,color)
  cmd.color("%s-color"%id,id)
  return 1

def rpcResetCGO(id):


Generated by  Doxygen 1.6.0   Back to index