Beispiel #1
0
 def __init__(self, **attr):
     Element.__init__(self, name='path', **attr)
     if attr.has_key('data'):
         self.data = attr['data']
     else:
         self.data = None
     if attr.has_key('transform'):
         self.postTransform = attr['transform']
     else:
         self.postTransform = None
Beispiel #2
0
 def __init__ (self, **attr):
     Element.__init__ (self, name='path', **attr)
     if attr.has_key ('data'):
         self.data = attr['data']
     else:
         self.data = None
     if attr.has_key ('transform'):
         self.postTransform = attr['transform']
     else:
         self.postTransform = None
Beispiel #3
0
 def __init__(self, *args, **kwargs):
     Element.__init__(self, *args, **kwargs)
     self._pressed = False
     self.released = True
Beispiel #4
0
 def __init__(self, states, *args, **kwargs):
     Element.__init__(self, *args, **kwargs)
     self.command = doNothing
     self.states = cycle(states)
     self.onState()
Beispiel #5
0
 def __init__(self, **attr):
     Element.__init__(self, **attr)
     self.transform = identity(3)
     self.children = []
     """if hasattr (self, 'x'):
Beispiel #6
0
 def __init__ (self, **attr):
     Element.__init__ (self, **attr)
     self.transform = identity (3)
     self.children = []
     """if hasattr (self, 'x'):
Beispiel #7
0
 def __init__(self, text='', **kwargs):
     Element.__init__(self)
     self.kwargs = kwargs
     self.set_text(text)
Beispiel #8
0
 def __init__ (self, **attr):
     Element.__init__ (self, **attr)
     self.children = []
     self.transform = identity (3)