예제 #1
0
 def __init__(self, **attr):
     GroupableElement.__init__(self, name='svg', **attr)
     BoxElement.__init__(self, name='svg', **attr)
     if attr.has_key('viewBox'):
         self.viewBox = attr['viewBox']
     else:
         self.viewBox = None
예제 #2
0
파일: __init__.py 프로젝트: Akanksha18/eden
 def __init__ (self, **attr):
     GroupableElement.__init__ (self, name = 'svg', **attr)
     BoxElement.__init__ (self, name = 'svg', **attr)
     if attr.has_key ('viewBox'):
         self.viewBox = attr['viewBox']
     else:
         self.viewBox = None
예제 #3
0
 def __init__ (self, **attr):
     BoxElement.__init__ (self, name = 'rect', **attr)
     if attr.has_key ('width'):
         self.width = float (attr['width'])
     else:
         self.width = None
     if attr.has_key ('height'):
         self.height = float (attr['height'])
     else:
         self.height = None
예제 #4
0
 def __init__(self, **attr):
     BoxElement.__init__(self, name='rect', **attr)
     if attr.has_key('width'):
         self.width = float(attr['width'])
     else:
         self.width = None
     if attr.has_key('height'):
         self.height = float(attr['height'])
     else:
         self.height = None
     if attr.has_key('absoluteSize'):
         self.absoluteSize = bool(attr['absoluteSize'])
     else:
         self.absoluteSize = False
     if attr.has_key('worldDeltaX'):
         self.worldDeltaX = float(attr['worldDeltaX'])
     else:
         self.worldDeltaX = 0.0
     if attr.has_key('worldDeltaY'):
         self.worldDeltaY = float(attr['worldDeltaY'])
     else:
         self.worldDeltaY = 0.0
예제 #5
0
 def __init__ (self, **attr):
     BoxElement.__init__ (self, name = 'rect', **attr)
     if attr.has_key ('width'):
         self.width = float (attr['width'])
     else:
         self.width = None
     if attr.has_key ('height'):
         self.height = float (attr['height'])
     else:
         self.height = None
     if attr.has_key ('absoluteSize'):
         self.absoluteSize = bool (attr['absoluteSize'])
     else:
         self.absoluteSize = False
     if attr.has_key ('worldDeltaX'):
         self.worldDeltaX = float (attr['worldDeltaX'])
     else:
         self.worldDeltaX = 0.0
     if attr.has_key ('worldDeltaY'):
         self.worldDeltaY = float (attr['worldDeltaY'])
     else:
         self.worldDeltaY = 0.0
예제 #6
0
 def __init__(self, **attr):
     BoxElement.__init__(self, name='use', **attr)
     if attr.has_key('href'):
         self.href = attr['href']
     else:
         self.href = None
예제 #7
0
파일: defs.py 프로젝트: Koperj/SahanaEden
 def __init__ (self, **attr):
     BoxElement.__init__ (self, name = 'use', **attr)
     if attr.has_key ('href'):
         self.href = attr['href']
     else:
         self.href = None