Adding working example with text rendering in pyqt5