def workspaces(self, index=None):
        """return generator for all all workspace instances"""
        c = self.centralWidget()
        if index is None:
            return (c.widget(n) for n in range(c.count()))
        else:
            return c.widget(index)