from PySide6.QtWidgets import QApplication, QPushButton app = QApplication(); button = QPushButton("🔎 Hello") button.show() print(button.text())