for pyqt Gui