Add a clear() method to the psHint base object.

git-svn-id: http://svn.robofab.com/trunk@53 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
Erik van Blokland 2008-02-25 12:52:26 +00:00
parent 92f1b1c979
commit 5d3393baab

View File

@ -88,6 +88,11 @@ class BasePostScriptHintValues(object):
break
return empty
def clear(self):
"""Set all attributes to default / empty"""
for name in self._attributeNames:
setattr(self, name, self._attributeNames[name]['default'])
def _loadFromLib(self, lib):
data = lib.get(postScriptHintDataLibKey)
if data is not None: