def resetAttribute(self, attribute): """ Reset 'attribute' to its default value """ self.push( commands.SetAttributeCommand(self._graph, attribute, attribute.defaultValue()))
def setAttribute(self, attribute, value): self.push(commands.SetAttributeCommand(self._graph, attribute, value))