<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi All</p>
    <p>I am working on a pyqt script that next to a mainwindow opens
      several separate sub windows. A worker script is running in a
      separate thread and sends signals which connect to different
      slots. These slots can be located in sub-windows which are not
      necessarily created at the instance the signal-slot connection is
      made.</p>
    <p>A problem arises for which I would get a correct solution (I
      circumvent them for now):</p>
    <ul>
      <li>to avoid a problem with the signal-slot connection I do a test
        on the sub-window, which I initialize to None at startup, before
        connecting, doing<br>
        <br>
        if subWindow is not None:<br>
            connect signal to slot<br>
        <br>
        If I open the window I create the connection from the
        MainWindow, but here I have to check whether the worker script
        is already active (done by opening a file) for which I also
        perform an init to None and a similar check.<br>
        <br>
        Now I wonder what happens when I close the sub-window, will its
        value ecome None again ?<br>
        Also, from whatever side I try to create the connection, I
        perform a check on something else being 'None' and I think this
        is not the correct approach.<br>
      </li>
    </ul>
    <p>Tx for your help<br>
      Alain<br>
    </p>
    <p><br>
    </p>
    <div class="moz-signature">-- <br>
      <br>
      <table style="background: none; border-width: 0px; border: 0px;
        margin: 0; padding: 0; border-collapse: collapse; border-top:
        1pt solid #F7751F; padding-top: 2px;" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <td style="padding-top: 0; padding-bottom: 0; padding-left:
              0; padding-right: 7px; border-top: 0; border-bottom: 0:
              border-left: 0; border-right: solid 3px #F7751F"
              valign="top"><img id="preview-image-url"
                src="cid:part1.0CB23D65.E117931F@gmail.com"></td>
            <td style="padding-top: 0; padding-bottom: 0; padding-left:
              12px; padding-right: 0;">
              <table style="background: none; border-width: 0px; border:
                0px; margin: 0; padding: 0;" cellspacing="0"
                cellpadding="0" border="0">
                <tbody>
                  <tr>
                    <td colspan="2" style="padding-bottom: 5px; color:
                      #F7751F; font-size: 14px; font-family: Arial,
                      Helvetica, sans-serif;"><strong>Alain Muls</strong></td>
                  </tr>
                  <tr>
                    <td colspan="2" style="color: #333333; font-size:
                      11px; font-family: Arial, Helvetica, sans-serif;"><i>Professor</i></td>
                  </tr>
                  <tr>
                    <td colspan="2" style="color: #333333; font-size:
                      11px; font-family: Arial, Helvetica, sans-serif;">Department
                      CISS</td>
                  </tr>
                  <tr>
                    <td colspan="2" style="color: #333333; font-size:
                      11px; font-family: Arial, Helvetica, sans-serif;"><strong>Royal
                        Military Academy</strong></td>
                  </tr>
                  <tr>
                    <td style="vertical-align: top; width: 20px; color:
                      #F7751F; font-size: 11px; font-family: Arial,
                      Helvetica, sans-serif;" valign="top" width="20">p:</td>
                    <td style="vertical-align: top; color: #333333;
                      font-size: 11px; font-family: Arial, Helvetica,
                      sans-serif;" valign="top">+32 244 13936</td>
                  </tr>
                  <tr>
                    <td style="vertical-align: top; width: 20px; color:
                      #F7751F; font-size: 11px; font-family: Arial,
                      Helvetica, sans-serif;" valign="top" width="20">a:</td>
                    <td style="vertical-align: top; color: #333333;
                      font-size: 11px; font-family: Arial, Helvetica,
                      sans-serif;" valign="top">Renaissance Avenue 30</td>
                  </tr>
                  <tr>
                    <td style="vertical-align: top; width: 20px; color:
                      #F7751F; font-size: 11px; font-family: Arial,
                      Helvetica, sans-serif;" valign="top" width="20"> </td>
                    <td style="vertical-align: top; color: #333333;
                      font-size: 11px; font-family: Arial, Helvetica,
                      sans-serif;" valign="top">B1000 Brussels (Belgium)</td>
                  </tr>
                  <tr>
                    <td style="vertical-align: top; width: 20px; color:
                      #F7751F; font-size: 11px; font-family: Arial,
                      Helvetica, sans-serif;" valign="top" width="20">w:</td>
                    <td style="vertical-align: top; color: #333333;
                      font-size: 11px; font-family: Arial, Helvetica,
                      sans-serif;" valign="top"><a
                        href="http://www.rma.ac.be/ciss/en/" style="
                        color: #1da1db; text-decoration: none;
                        font-weight: normal; font-size: 11px;">www.rma.ac.be/ciss/en/</a>  <span
                        style="color: #F7751F;">e: </span><a
                        href="mailto:alain.muls@rma.ac.be" style="color:
                        #1da1db; text-decoration: none; font-weight:
                        normal; font-size: 11px;">alain.muls@rma.ac.be</a></td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>