code samples when learning pyqt