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()
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)
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 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)
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)
def __init__( self, menu, window ): "Set the menu." self.menu = menu addToCraftMenu( menu ) euclidean.addElementToListDictionaryIfNotThere( self, window, settings.globalProfileSaveListenerListTable )
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)
def __init__(self, menu, window): "Set the menu." self.menu = menu addToCraftMenu(menu) euclidean.addElementToListDictionaryIfNotThere( self, window, settings.globalProfileSaveListenerListTable)