While loop problem in pyqt

Printable View