Exemple #1
0
 def __init__(self, key=None, value=None):
     OrderedDict.__init__(self)
     if key != None and value != None:
         self[key] = value
         self._name = value
         self._nametype = key
     else:
         self._name = ''
         self._nametype = ''
Exemple #2
0
	def __init__(self, keys):
		self._name = ''
		self.keys = keys
		OrderedDict.__init__(self)
Exemple #3
0
	def __init__(self, filePath=''):
		OrderedDict.__init__(self)
		if filePath != '':
			self.read(filePath) 
Exemple #4
0
 def __init__(self, keys, parent):
     self._name = ''
     self._keys = keys
     self.parent = parent
     OrderedDict.__init__(self)
Exemple #5
0
 def __init__(self):
     self._name = ''
     self._nametype = ''
     OrderedDict.__init__(self)
Exemple #6
0
 def __init__(self, filePath=None, key=None):
     OrderedDict.__init__(self)
     if filePath != None and os.path.isfile(filePath):
         self.read(filePath, key)
     else:
         self._filename = filePath
Exemple #7
0
 def __init__(self, filePath=None, key=None):
     OrderedDict.__init__(self)
     if filePath != None:
         self.read(filePath, key)