'Close the glass lid. This validates all scripts on the button,
which means that scripts only being valid when the lid is open
will go away automatically.'

def close_lid(self):

    if (not self.db.lid_open):
        return
    desc = self.db.desc_lid_closed
    if (not desc):
        desc = 'This    is    a    large    red    button,    inviting    yet    evil-looking.    '
        desc += 'Its    glass    cover    is    closed,    protecting    it.'
    self.db.desc = desc
    self.db.lid_open = False
    self.scripts.validate()
    self.scripts.add(scriptexamples.ClosedLidState)
