예제 #1
0
 def __init__(self, name=None, atype=None, static=False):
     NamedObject.__init__(self, name)
     self._static = static
     if atype is None:
         self._type = atype
         self._type_description = self.DEFAULT_DESCRIPTION
     else:
         self.setType(atype, self.DEFAULT_DESCRIPTION)
예제 #2
0
 def __init__(self, name=None, atype=None, selected=True, static=False, transferable=True, identifier=False):
     NamedObject.__init__(self, name)
     FlagContainer.__init__(self, static, transferable, identifier)
     self._selected = selected
     if atype is None:
         self._type_name = None
     else:
         self.setTypeName(atype)
예제 #3
0
 def __init__(self, type_name, base_type, option_dict):
     NamedObject.__init__(self, type_name)
     self.__dict__.update(option_dict)
     self.base_type = base_type
     self.options = sorted(option_dict.keys())