'Restore Dock configuration as generated by saveState.
Note that this function does not create any Docks--it will only
restore the arrangement of an existing set of Docks.'

def restoreState(self, state):

    (containers, docks) = self.findAll()
    oldTemps = self.tempAreas[:]
    if (state['main'] is not None):
        self.buildFromState(state['main'], docks, self)
    for s in state['float']:
        a = self.addTempArea()
        a.buildFromState(s[0]['main'], docks, a)
        a.win.setGeometry(*s[1])
    for d in docks.values():
        self.moveDock(d, 'below', None)
    for c in containers:
        c.close()
    for a in oldTemps:
        a.apoptose()
