import sys from PyQt5.QtWidgets import QApplication, QWidget, QPushButton class MyWindow(QWidget): def __init__(self): super().__init__() btn = QPushButton('Click me', self) btn.move(50, 50) self.setGeometry(300, 300, 250, 150) self.setWindowTitle('QPushButton Example') if __name__ == '__main__': app = QApplication(sys.argv) window = MyWindow() window.show() sys.exit(app.exec_())In this code, a simple PyQt5 desktop application with a single QPushButton is created. The constructor of the QPushButton class is used to create a click button with the text “Click me”. The move() method is used to position the button on the user interface. The setGeometry() method is used to set the size and position of the window while the setWindowTitle() method sets the title of the window. The package library for this code is PyQt5.QtWidgets