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