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:
parent
92f1b1c979
commit
5d3393baab
@ -88,6 +88,11 @@ class BasePostScriptHintValues(object):
|
|||||||
break
|
break
|
||||||
return empty
|
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):
|
def _loadFromLib(self, lib):
|
||||||
data = lib.get(postScriptHintDataLibKey)
|
data = lib.get(postScriptHintDataLibKey)
|
||||||
if data is not None:
|
if data is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user