Exemple #1
0
	def addToDialog( self, gridPosition ):
		"Add this to the dialog."
		euclidean.addElementToListDictionaryIfNotThere( self, self.repository.repositoryDialog, settings.globalProfileSaveListenerListTable )
		self.gridPosition = gridPosition.getCopy()
		self.gridPosition.row = gridPosition.rowStart
		self.gridPosition.increment()
		self.setRadioButtons()
Exemple #2
0
	def addToIdentifierDictionaryIFIdentifierExists(self):
		'Add to the id dictionary if the id key exists in the attribute dictionary.'
		if 'id' in self.attributeDictionary:
			idKey = self.getImportNameWithDot() + self.attributeDictionary['id']
			self.getRoot().idDictionary[idKey] = self
		if 'name' in self.attributeDictionary:
			nameKey = self.getImportNameWithDot() + self.attributeDictionary['name']
			euclidean.addElementToListDictionaryIfNotThere(self, nameKey, self.getRoot().nameDictionary)
		for tagKey in self.getTagKeys():
			euclidean.addElementToListDictionaryIfNotThere(self, tagKey, self.getRoot().tagDictionary)
Exemple #3
0
 def addToIdentifierDictionaryIFIdentifierExists(self):
     'Add to the id dictionary if the id key exists in the attribute dictionary.'
     if 'id' in self.attributeDictionary:
         idKey = self.getImportNameWithDot() + self.attributeDictionary['id']
         self.getRoot().idDictionary[idKey] = self
     if 'name' in self.attributeDictionary:
         nameKey = self.getImportNameWithDot() + self.attributeDictionary['name']
         euclidean.addElementToListDictionaryIfNotThere(self, nameKey, self.getRoot().nameDictionary)
     for tagKey in self.getTagKeys():
         euclidean.addElementToListDictionaryIfNotThere(self, tagKey, self.getRoot().tagDictionary)
Exemple #4
0
	def addToDialog( self, gridPosition ):
		"Add this to the dialog."
		self.activate = False
		self.menuButtonDisplay.setToNameAddToDialog( self.valueName, gridPosition )
		self.menuButtonDisplay.menu.add_radiobutton( label = self.valueName, command = self.clickRadio, value = self.valueName, variable = self.menuButtonDisplay.radioVar )
		self.menuLength = self.menuButtonDisplay.menu.index( settings.Tkinter.END )
		if self.value:
			self.menuButtonDisplay.radioVar.set( self.valueName )
			self.menuButtonDisplay.menu.invoke( self.menuLength )
		euclidean.addElementToListDictionaryIfNotThere( self.repository, self.repository.repositoryDialog, settings.globalProfileSaveListenerListTable )
		self.activate = True
	def addToDialog( self, gridPosition ):
		"Add this to the dialog."
		self.activate = False
		self.menuButtonDisplay.setToNameAddToDialog( self.valueName, gridPosition )
		self.menuButtonDisplay.menu.add_radiobutton( label = self.valueName, command = self.clickRadio, value = self.valueName, variable = self.menuButtonDisplay.radioVar )
		self.menuLength = self.menuButtonDisplay.menu.index( settings.Tkinter.END )
		if self.value:
			self.menuButtonDisplay.radioVar.set( self.valueName )
			self.menuButtonDisplay.menu.invoke( self.menuLength )
		euclidean.addElementToListDictionaryIfNotThere( self.repository, self.repository.repositoryDialog, settings.globalProfileSaveListenerListTable )
		self.activate = True
Exemple #6
0
	def addToIdentifierDictionaries(self):
		'Add the element to the owner document identifier dictionaries.'
		ownerDocument = self.getOwnerDocument()
		importNameChain = self.getImportNameChain()
		idKey = self.getStrippedAttributesValue('id')
		if idKey != None:
			ownerDocument.idDictionary[importNameChain + idKey] = self
		nameKey = self.getStrippedAttributesValue('name')
		if nameKey != None:
			euclidean.addElementToListDictionaryIfNotThere(self, importNameChain + nameKey, ownerDocument.nameDictionary)
		for tagKey in self.getTagKeys():
			euclidean.addElementToListDictionaryIfNotThere(self, tagKey, ownerDocument.tagDictionary)
Exemple #7
0
 def addToIdentifierDictionaries(self):
     'Add the element to the owner document identifier dictionaries.'
     ownerDocument = self.getOwnerDocument()
     importNameChain = self.getImportNameChain()
     idKey = self.getStrippedAttributesValue('id')
     if idKey is not None:
         ownerDocument.idDictionary[importNameChain + idKey] = self
     nameKey = self.getStrippedAttributesValue('name')
     if nameKey is not None:
         euclidean.addElementToListDictionaryIfNotThere(
             self, importNameChain + nameKey, ownerDocument.nameDictionary)
     for tagKey in self.getTagKeys():
         euclidean.addElementToListDictionaryIfNotThere(
             self, tagKey, ownerDocument.tagDictionary)
Exemple #8
0
	def __init__( self, menu, window ):
		"Set the menu."
		self.menu = menu
		addToCraftMenu( menu )
		euclidean.addElementToListDictionaryIfNotThere( self, window, settings.globalProfileSaveListenerListTable )
Exemple #9
0
	def addToDialog( self, gridPosition ):
		"Add this to the dialog."
		euclidean.addElementToListDictionaryIfNotThere( self, self.repository.repositoryDialog, settings.globalProfileSaveListenerListTable )
 def addToDialog(self, gridPosition):
     "Add this to the dialog."
     euclidean.addElementToListDictionaryIfNotThere(
         self, self.repository.repositoryDialog,
         settings.globalProfileSaveListenerListTable)
Exemple #11
0
 def __init__(self, menu, window):
     "Set the menu."
     self.menu = menu
     addToCraftMenu(menu)
     euclidean.addElementToListDictionaryIfNotThere(
         self, window, settings.globalProfileSaveListenerListTable)