title: Atfer lauching my Gui in my main program , it don't keep on
body: <p>i create a little program with a GUi (PyQT5), my windows is programmed in my &quot;Dailog.py&quot; and all actions and calculations will be on my main...
  But when i lauch my main which is calling my GUI, the Designed windows is opened but the rest of the main program is not executed...</p>
  <p>Please see a snap of my code ( i remove all boring stuff):</p>
  <p>My dialog.py (Gui interface):</p>
  <pre><code>class App(QMainWindow):
  def init(self):
     super().init()
  
    self.title = 'my program&quot;
    self.left = 100
    self.top = 100
    self.width = 640
    self.height = 500
    self.initUI()
    self.msg = QMessageBox()
    self.w = None
    self.w2 = None
    self.w3 = Non
  
  def initUI(self):    self.setWindowTitle(self.title)self.setWindowIcon(QtGui.QIcon('import/logo.jpg'))self.setGeometry(self.left,self.top,self.width,self.height)
  </code></pre>
  <p>---- removing boring stuff</p>
  <p>end of the file :</p>
  <p><code>app = QApplication(sys.argv) </code></p>
  <p><code>  w = App()</code></p>
  <p><code>w.show()</code></p>
  <p><code>app.exec()</code></p>
  <p><code>sys.exit(app.exec())</code></p>
  <p>Now my main program :
  class Maincontroller():</p>
  <pre><code>def __init__(self):
      super().__init__()
      self.today = date.today()
      
                     
  def main(self):
      App()
      print(self.today)
      SerialNumber =[1,2,3,4]
      print(SerialList)
  </code></pre>
  <p>the last 3 instructions of main (print..) are not executed...why?</p>
  <p>thanks for your help in advance..</p>
  <p>Regards;</p>
  <p>i execpt to have a main which has received datas from the dailog and used it...</p>