Beispiel #1
0
    def __init__(self,
                 paper,
                 type="normal",
                 points=[],
                 shape=(8, 10, 3),
                 pin=1,
                 spline=0,
                 package=None,
                 fill="#000"):
        meta_enabled.__init__(self, standard=paper.standard)
        drawable.__init__(self)
        with_line.__init__(self)
        line_colored.__init__(self)

        self.paper = paper

        self.type = type
        self.points = []
        self.spline = spline
        self.paper = paper
        self.shape = shape
        self.items = []
        self.pin = 1
        if points:
            for p in points:
                pnt = point(self.paper, xy=p, arrow=self)
                self.points.append(pnt)
        self.reaction = reaction()
        self.reaction.arrows.append(self)
        if package:
            self.read_package(package)
Beispiel #2
0
  def __init__( self, standard=None, atoms=(), package=None, molecule=None, type='n', order=1,
                simple_double=1):
    # initiation
    self.molecule = molecule
    oasa.bond.__init__( self, order=order, vs=atoms, type=type)
    meta_enabled.__init__( self, standard=standard)
    line_colored.__init__( self)
    drawable.__init__( self)
    with_line.__init__( self)
    #
    self.type = type
    self.order = order
    self.item = None
    self.second = []
    self.third = []
    self.items = []
    if atoms:
      self.atom1, self.atom2 = atoms
    self.selector = None

    # implicit values
    self.center = None
    self.auto_bond_sign = 1
    self.simple_double = simple_double
    self.equithick = 0

    if package:
      self.read_package( package)
Beispiel #3
0
  def __init__( self, standard=None, atoms=(), package=None, molecule=None, type='n', order=1,
                simple_double=1):
    # initiation
    self.molecule = molecule
    oasa.bond.__init__( self, order=order, vs=atoms, type=type)
    meta_enabled.__init__( self, standard=standard)
    line_colored.__init__( self)
    drawable.__init__( self)
    with_line.__init__( self)
    #
    self.type = type
    self.order = order
    self.item = None
    self.second = []
    self.third = []
    self.items = []
    if atoms:
      self.atom1, self.atom2 = atoms
    self.selector = None

    # implicit values
    self.center = None
    self.auto_bond_sign = 1
    self.simple_double = simple_double
    self.equithick = 0

    if package:
      self.read_package( package)
Beispiel #4
0
 def __init__( self, paper, coords=(), package=None, width=1, spline=False):
   self.spline = spline
   line_colored.__init__( self)
   vector_graphics_item.__init__( self, paper, coords=coords, package=package, width=width)
   del self.coords # polygon does use points for storage of coord information
   if not package:
     self.points = []
     for i in range( 0, len( coords), 2):
       x = coords[i]
       y = coords[i+1]
       self.points.append( classes.point( self.paper, xy=( x, y), arrow=self))
Beispiel #5
0
  def __init__( self, paper, type="normal", points=[], shape=(8,10,3), pin=1, spline=0, package=None, fill="#000"):
    meta_enabled.__init__( self, standard=paper.standard)
    drawable.__init__( self)
    with_line.__init__( self)
    line_colored.__init__( self)

    self.paper = paper

    self.type = type
    self.points = []
    self.spline = spline
    self.paper = paper
    self.shape = shape
    self.items = []
    self.pin = 1
    if points:
      for p in points:
        pnt = point( self.paper, xy=p, arrow=self)
        self.points.append( pnt)
    self.reaction = reaction()
    self.reaction.arrows.append( self)
    if package:
      self.read_package( package)