I am new to Pyqt5 and above is my code for the first project. In the Page1 I have a global variable which is getting updated with a button click and in page2 I am printing t