def reset(self):
    'Restore plug to default value'
    if self.writable:
        self.write(self.default)
    else:
        raise TypeError(("Cannot reset non-writable attribute '%s'" % self.path()))
Restore plug to default value
def reset(self):
    
    if self.writable:
        self.write(self.default)
    else:
        raise TypeError(("Cannot reset non-writable attribute '%s'" % self.path()))