button = QPushButton('PyQt5 button', self) button.setToolTip('This is an example button') button.move(100,70)