i create a little program with a GUi (PyQT5), my windows is programmed in my "Dailog.py" 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...
Please see a snap of my code ( i remove all boring stuff):
My dialog.py (Gui interface):
class App(QMainWindow):
def init(self):
super().init()
self.title = 'my program"
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)
---- removing boring stuff
end of the file :
app = QApplication(sys.argv)
w = App()
w.show()
app.exec()
sys.exit(app.exec())
Now my main program : class Maincontroller():
def __init__(self):
super().__init__()
self.today = date.today()
def main(self):
App()
print(self.today)
SerialNumber =[1,2,3,4]
print(SerialList)
the last 3 instructions of main (print..) are not executed...why?
thanks for your help in advance..
Regards;
i execpt to have a main which has received datas from the dailog and used it...