<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks so much for your reply.<br>
    <br>
    <ol>
      <li>As you noted, the MainWindow was generated from pyuic5 after
        using the QtCreator. No changes were made to the resulting
        mainwindow.py file.</li>
      <li>Regarding your question, the Menu Bar is at the upper left.
        The "File" menu only has an "Exit" entry which works correctly.
        The Title bar is missing at the very top.</li>
      <li>I tried both of your suggestions with no changes.</li>
      <li>The application was tried under both LDXE and GNOME and
        responded the same way.</li>
      <li>I plan to change the specification of the menu bar today to
        see if that affects anything.  I did notice that there were
        indications of an error (slashed 0) in the Object window on the
        QtCreator window, but could not find out why. </li>
      <li>Will also report on the print statement to show geometry.<br>
      </li>
      <li>If I can't resolve the problem with those means, I will try
        either a cross compile of Qt5 or recompiling it on the RPi with
        the resulting 48 hours keeping the RPi busy.  Maybe I will get a
        Pi 2, which is considerable faster, before I start that phase.</li>
    </ol>
    <br>
    <div class="moz-cite-prefix">Thanks again.<br>
      <br>
      On 03/22/2015 01:53 PM, David Cortesi wrote:<br>
    </div>
    <blockquote
cite="mid:CALyzANsp7_1oDgk1RAHUGpM7UXskBhOR41RQiaTo=asJfPuEPg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div><br>
            </div>
            <div>Interesting. I always find the proper use of the pyuic5
              output confusing, despite the relatively clear
              documentation here:<br>
              <div><br>
                <a moz-do-not-send="true"
                  href="http://pyqt.sourceforge.net/Docs/PyQt5/designer.html">http://pyqt.sourceforge.net/Docs/PyQt5/designer.html</a><br>
                <br>
              </div>
              You appear to be using the "second approach" shown there
              exactly. <br>
              In the class Ui_MainWindow(object) I see,<br>
              <br>
                      MainWindow.resize(400, 300)<br>
               <br>
            </div>
            <div>so it should not be more than 400px across and 300 high
              plus the menu bar. I also see<br>
              <br>
                     self.menuBar.setGeometry(QtCore.QRect(0, 0, 400,
              22))<br>
               <br>
            </div>
            <div>which suggests the menu bar will be at 0,0, that is,
              upper left corner. Is it?<br>
            </div>
            <div><br>
            </div>
            <div>All I can suggest is that you temporarily insert
              something like, self.resize(200,100) after the call to
              setupUi() to force the window to be <br>
            </div>
            <div>smaller.<span
                style="font-family:arial,helvetica,sans-serif"> Or you
                could use self.<span class=""
style="max-width:75%;font-weight:100;color:rgb(26,26,26);font-size:12px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:14px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(246,246,246)"><b>setGeometry</b></span><span
style="color:rgb(49,49,49);font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:14px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(246,246,246);display:inline!important;float:none">(50,50,200,100</span><span
style="color:rgb(49,49,49);font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:14px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(246,246,246);display:inline!important;float:none">)
                  to ensure that the upper left corner is on the screen.<br>
                  <br>
                </span></span></div>
            <div><span
style="color:rgb(49,49,49);font-family:Arial,Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:14px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(246,246,246);display:inline!important;float:none"><span
                  style="font-family:arial,helvetica,sans-serif">And add
                  a temporary print before the exit to show the current
                  geometry,<br>
                      print(self.geometry().x(),
                  self.geometry().y(),self.geometry().width(),self.geometry().height()
                  )</span><br>
                <br>
              </span></div>
            <div><span
style="color:rgb(49,49,49);font-family:Arial,Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:14px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(246,246,246);display:inline!important;float:none">Then
                drag the window to a desirable starting size and
                position; quit; and the print tells you how to set the
                geometry on startup. Later you can add code to save the
                current geometry in your Settings on exit and load it on
                startup.<br>
                <br>
              </span></div>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>