Exemple #1
0
 def __init__(self, *args, **kwargs):
     # Converts args so they're appropriate for self.type_.
     if len(args) == 0:
         args = ("",)
     if isinstance(args[0], str):
         args = (self.type_(args[0]),) + args[1:]
         tag = self.__class__
     else:
         tag = None
     ## Using super fails, probably because NodePath is a C++ class.
     # super(PSO, self).__init__(self, *new_args, **kwargs)
     SSO.__init__(self, *args, **kwargs)
     if tag:
         self.setPythonTag("sso", tag)
Exemple #2
0
 def __init__(self, *args, **kwargs):
     # Converts args so they're appropriate for self.type_.
     if len(args) == 0:
         args = ("", )
     if isinstance(args[0], str):
         args = (self.type_(args[0]), ) + args[1:]
         tag = self.__class__
     else:
         tag = None
     ## Using super fails, probably because NodePath is a C++ class.
     # super(PSO, self).__init__(self, *new_args, **kwargs)
     SSO.__init__(self, *args, **kwargs)
     if tag:
         self.setPythonTag("sso", tag)
Exemple #3
0
 def __init__(self, *args, **kwargs):
     ## Using super fails, probably because NodePath is a C++ class.
     # super(GSO, self).__init__(*args, **kwargs)
     SSO.__init__(self, *args, **kwargs)
Exemple #4
0
 def __init__(self, *args, **kwargs):
     ## Using super fails, probably because NodePath is a C++ class.
     # super(GSO, self).__init__(*args, **kwargs)
     SSO.__init__(self, *args, **kwargs)