def setWriteToShell(self, writeToShell=True):
if writeToShell and not self._connected:<EOL><INDENT>self.message.connect(self.stdW)<EOL>self._connected = True<EOL><DEDENT>elif not writeToShell and self._connected:<EOL><INDENT>try:<EOL><INDENT>self.message.disconnect(self.stdW)<EOL><DEDENT>except TypeError:<EOL><INDENT>pass  <EOL><DEDENT>self._connected = False<EOL><DEDENT>
connect sysout to the qtSignal